Guest User

Untitled

a guest
May 20th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.66 KB | None | 0 0
  1. on 1:KICK:#:{
  2.   %kickChannel = $chan
  3.   echo -s Kicked from $chan
  4.  
  5.  
  6.   ;If we've been kicked again since the kickTimer was initially set, stop trying to rejoin the channel.
  7.   if (($knick == $me) && (%kickTimer == 1)) {
  8.     echo -s Floodkick detected from %kickChannel $+ . Halting the auto-rejoin process and rejoining in 6 seconds.
  9.     %kickTimer = 0
  10.     .timers off
  11.     .timer 1 6 /join %kickChannel
  12.   }
  13.  
  14.   ;If it's the first time we've been kicked, setup the kickTimer and automatically rejoin the channel.
  15.   elseif ($knick == $me) {
  16.     .timer 1 3 /set %kickTimer 0
  17.     %kickTimer = 1
  18.     echo -s Attempting to rejoin $chan
  19.     /join %kickChannel
  20.   }
  21. }
Add Comment
Please, Sign In to add comment