Advertisement
westor

!Unban Input Command for Zoi v1.0

Jun 14th, 2020
1,707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.58 KB | None | 0 0
  1. ON *:JOIN:#: {
  2.   if ($nick == $me) { mode $chan b }
  3. }
  4.  
  5. ON @*:INPUT:#: {
  6.   tokenize 32 $strip($1-)
  7.  
  8.   if ($me isop $chan) && ($1) && ($2) && ($1 == !unban) && ($2 !== $me) {
  9.     var %n = $remove($2,@,+,%,~,!,&)
  10.     var %t = $ibl($chan,0)
  11.  
  12.     if (!%t) { echo 4 -at Error on !unban, The list was empty before, updating now, try again in 10seconds! | mode $chan b | return }
  13.  
  14.     var %i = 1
  15.     while (%i <= %t) {
  16.       var %m = $ibl($chan,%i)
  17.       var %a = $gettok(%m,1,33)
  18.  
  19.       if (%a) && (%m) && (%n) && (%a == %n) { mode $chan -b %m }
  20.  
  21.       inc %i
  22.     }
  23.  
  24.   }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement