Jethro commented on a Page, Kick Me/Ban Me/KickBan Me  -  Mar 17, 2009

Slacker, why do you use the regular expressions when it has nothing to do with the commands? If the regex is used, you should change your code to this:

on $*:Text:/^!(kickme|kickbanme|banme)$/S:#:{
  if ($regml(1) == kickme) { kick # $nick Kicked on request }
  elseif ($regml(1) == kickbanme) { ban -ku30 # $nick 2 Kick + 30 second ban by request }
  elseif ($regml(1) == banme) { ban -u30 # $nick 2 | msg # $nick activated a 30 second ban by request. }
}

Otherwise, you could just use:

on *:Text:*:#:{
if ($1 == !kickme) { kick # $nick Kicked on request }
  elseif ($1 == !kickbanme) { ban -ku30 # $nick 2 Kick + 30 second ban by request }
  elseif ($1 == !banme) { ban -u30 # $nick 2 | msg # $nick activated a 30 second ban by request. }
}
 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.