Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on 1:KICK:#:{
- %kickChannel = $chan
- echo -s Kicked from $chan
- ;If we've been kicked again since the kickTimer was initially set, stop trying to rejoin the channel.
- if (($knick == $me) && (%kickTimer == 1)) {
- echo -s Floodkick detected from %kickChannel $+ . Halting the auto-rejoin process and rejoining in 6 seconds.
- %kickTimer = 0
- .timers off
- .timer 1 6 /join %kickChannel
- }
- ;If it's the first time we've been kicked, setup the kickTimer and automatically rejoin the channel.
- elseif ($knick == $me) {
- .timer 1 3 /set %kickTimer 0
- %kickTimer = 1
- echo -s Attempting to rejoin $chan
- /join %kickChannel
- }
- }
Add Comment
Please, Sign In to add comment