SHARE
TWEET

who the fuck is affected by this ban

Seb May 29th, 2017 (edited) 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## who the fuck is affected by this ban. by Sebastien (xplo)  UPDATED: for ipv6.
  2. ## If you touch at something below this line, you WILL fuckup something.
  3. ## #mircscripting @ undernet   #pisg @ freenode
  4. on *:BAN:*: {
  5.   var %i $ial(*,0)
  6.   var %nicks
  7.   var %banmask $banmask
  8.   if (%banmask == *!*@*) { %nicks = everyone }
  9.   else {
  10.     while (%i > 0) {
  11.       if (%banmask iswm $ial(*,%i)) {
  12.         %nicks = $addtok(%nicks, $gettok($v2, 1, 33 ), 32)
  13.       }
  14.       dec %i
  15.     }
  16.   }
  17.   echo -i2tc Info2 $chan This %banmask ban affects $+ $iif(%nicks != $null, $iif(%nicks == everyone, $chr(32) $v2 $+ ., : $replacex(%nicks, $chr(32), $chr(44) $+ $chr(32))), $chr(32) $+ no one.)
  18. }
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top