!ban nick

By Crushed on Aug 29, 2010

(04:14:43) <@dR0nE> !kb NiceDuDe You Are Not Welcome Here
(04:14:29) dR0nE sets mode: +b !@119.152.26.98
(04:14:30)
NiceDuDe was kicked by dR0nE (You Are Not Welcome Here -2101-)

on *:INPUT:*:{
  if ($strip($1,burc) == !kb) {
    var %n = $nick(#,0)
    while (%n > 0) {
      if ($replace($2,[,<,],>,$chr(92),?) isin $replace($nick(#,%n),[,<,],>,$chr(92),?)) || (!$2) {
        ban -k # $nick(#,%n) 2 $3-
        ;mode # +bb $nick(#,%n) $address(%kbnix,3)
        halt
      }
      dec %n
    }
  }
}

Comments

Sign in to comment.
d8e93jf9vwp   -  Sep 02, 2010

Will it blend? That is the question.

 Respond  
Jethro   -  Sep 01, 2010

To be or not to be..., that is the question...

 Respond  
d8e93jf9vwp   -  Sep 01, 2010

Why?

 Respond  
mitch21236   -  Aug 29, 2010

xD

 Respond  
Jethro   -  Aug 29, 2010

Is there a reason why you use a while loop for this snippet?

 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.