Ban Pro

By DarkDaemon on Dec 13, 2007

My first ban protection I hope you enjoy!

on 1:BAN:#:{
if (($bnick == $me) || ($banmask == $address($me,1) || ($banmask == $address($me,2)  || ($banmask == $address($me,3)  || ($banmask == $address($me,4)  || ($banmask == $address($me,5)) && ($me isop $chan) { notice $nick Don't do that! | cs unban $chan | join $chan }
}

Comments

Sign in to comment.
guest598594   -  Dec 17, 2007

shouldnt it be

* $+ $banmask $+ * $address($me,5)) { blah }

:)

 Respond  
Pass   -  Dec 14, 2007

Actually DarkDaemon could just use one $address

if ($banmask iswm $address($me,5)) { blah }

It\'s as easy as that.

 Respond  
guest598594   -  Dec 14, 2007

you definitely should use while loops

  if ($bnick == $me) goto unban
  else var %x = 1
  while $address($me,%x) {
    if ($banmask == $v1) goto unban
    else inc %x
  }
  :unban
  [unban stuff]
 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.