Advertisement
westor

G-Lined user channel ban for ionli v3.0

Jan 18th, 2015
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.68 KB | None | 0 0
  1. ON !*:QUIT: {
  2.   if ($status !== connected) { return }
  3.   var %chans = $comchans_get($nick)
  4.   if (!%chans) { return }
  5.   tokenize 32 $strip($1-,burci)
  6.   if (G-lined isin $1-) {
  7.     var %t = $numtok(%chans,44)
  8.     var %i = 1
  9.     while (%i <= %t) {
  10.       var %c = $gettok(%chans,%i,44)
  11.       if ($me ison %c) { echo -s .msg X ban %c $nick Too many G-lines from ur host. }
  12.       inc %i
  13.     }
  14.   }
  15. }
  16.  
  17. alias comchans_get {
  18.   if (!$1) { return }
  19.   var %t = $comchan($1,0)
  20.   if (!%t) { return 0 }
  21.   var %i = 1
  22.   while (%i <= %t) {
  23.     var %c = $comchan($1,%i)
  24.     if (%c) { var %tot = $addtok(%tot,%c,44) }
  25.     inc %i
  26.   }
  27.   if (%tot) { return %tot }
  28.   elseif (!%tot) { return 0 }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement