Unban script for a bot

By PurplesurgeMirc on Apr 04, 2009

It searches through the banlist for a banmask containing the host of $2 (a nickname)

Author: Rolo @ #mIRC on Purplesurge

on *:text:!unban &:#:{
  if ($nick isop #) || ($nick ishop #) {
    whois $2
    set %nicklookup $2
    set %chanlookup #
    mode # b
  }
}
raw 311:*: if ($2 == %nicklookup) {
  set %hostlookup $+($2,!,$3,@,$4)
  var %x 1
  while ($ibl(%chanlookup,0) >= %x) {
    if ($ibl(%chanlookup,%x) iswm %hostlookup) {
      mode %chanlookup -b $ibl(%chanlookup,%x)
    }
    inc %x
  }
  unset %*lookup
}

Comments

Sign in to comment.
Zaff   -  Apr 04, 2009

Pretty Basic script, I like what you did with the Raw its not bad.

6/10

 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.