Advertisement
westor

Idle alias fix v1.1 for XooM

Sep 8th, 2019
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.62 KB | None | 0 0
  1. alias idle {
  2.   if (!$1) { return }
  3.  
  4.   var %t = $nick($1,0,o)
  5.   if (!%t) || (%t == 1) || ($me !ison $1) || ($me !isop $1) { return }
  6.  
  7.   var %i = 1
  8.  
  9.   while (%i <= %t) {
  10.     var %o_nick = $nick($1,%i,o)
  11.     var %o_nick_ident = $gettok($gettok($address(%o_nick,5),2,33),1,64)
  12.     var %o_nick_host = $gettok($gettok($address(%o_nick,5),2,33),2,64)
  13.     var %o_nick_idle = $nick($1,%i,o).idle
  14.  
  15.     if (%o_nick ison $1) && (%o_nick !== $me) && (%o_nick_idle > 7200) && (!$istok(%exempto,%o_nick,32)) && (!$istok(%exempto,%o_nick_ident,32)) && (!$istok(%exempto,%o_nick_host,32)) { mode $1 -o %o_nick }
  16.  
  17.     inc %i
  18.   }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement