on $*:TEXT:/^[!@.](kick|k)+ \w+/i:#: { if ($readini(channels.ini, $chan, status) == $null) { halt } elseif ($readini(channels.ini, $chan, status) == deactivated) { halt } elseif ($readini(channels.ini, $chan, status) == activated) { if (($nick ishop #) || ($nick isop #) || ($address($nick,2) == *!*@is.a.fraud.com)) { if (($me ishop #) || ($me isop #)) { if (($$2 == $me) || ($address($$2,2) == *!*@is.a.fraud.com)) { notice $nick You cannot kick this person halt } if ($$2 ison $chan) goto kick else { notice $nick $$2 isn't in $chan at the moment halt } :kick if ($nick ishop #) && ($$2 isop #) { notice $nick You cannot kick an op! halt } elseif ($nick ishop #) && ($$2 ishop #) { notice $nick You cannot kick a halfop! halt } else { inc %knum kick # $$2 $3- 14 halt } } } } }