Linuxuser commented on a Page, Short key   -  Mar 15, 2011

alias check { if ($regex(%reg,(ub|op) { set %reg $replace(%reg,ub,-b,op,+o) }
on @:TEXT::#:{ set %cmds invite ban -b +o
if ($regex($1,(i|b|ub|op)) { set %reg $regml(1) $+ \S+ | /check
if ($regex(%cmds,%reg)) && ($regex(%cmds,%reg) !== (-b|+o) { cs $regml(1) # $2 }
else { .mode # $regex(%cmds,%reg) $address($2,2) } }

may confuse you but all in one event and less lines than the other examples

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.