Advertisement
westor

/resetchanidle for deVilbaT v1.0

Jul 8th, 2023
1,984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.44 KB | None | 0 0
  1. ON ^*:TEXT:*:#: {
  2.   if ($hget(RESET_CHAN_IDLE,$chan)) { hdel RESET_CHAN_IDLE $chan | haltdef }
  3. }
  4.  
  5. alias resetchanidle {
  6.   ; /resetchanidle <#channel>
  7.  
  8.   var %t = $nick($1,0)
  9.  
  10.   if (!$1) || ($status !== connected) || ($me !ison $1) || (%t == 1) { return }
  11.  
  12.   :again
  13.  
  14.   var %nick = $nick($1,$rands(1,%t))
  15.  
  16.   if (%nick == $me) { goto again }
  17.  
  18.   hadd -m RESET_CHAN_IDLE $1 1
  19.  
  20.   .parseline -itqn : $+ $ial(%nick) PRIVMSG $1 :-RESETIDLE-
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement