Note: The mainteinance of the scripting examples is discontinued since I no longer have an interest to continue doing so. The pages will remain here, for now, but that might not be the case in the future. You are free to download all the material on these pages and set a up mirror, or even continue the maintenance of the material by enhancing the examples yourself.

All the material in these examples are for the mIRC version 6.03. It is very likely that some or most of these examples won't work in future versions.

Intelligent and non-abusive rejoin after kick

Automatic rejoin after kick can be a real pain for an operator who tries to keep a channel clean. It's my understanding that many use autorejoin because they want to be able to rejoin in some channels, not necessarily all. If this is the case, I think that a good compromise can be reached. It's rather easy to do a script that rejoins automatically, but only for certain channels.

I'm going to present two ways of doing more intelligent autorejoin than what is found on most of the clients. The first is rather obvious: you define the channels where you want to limit the autorejoin function. The other is based on operator status. Assuming that you are an op on a channel, you usually don't expect to be kicked except when someone is trying to do a takeover or something similar. One might ask if rejoining helps such situation - I can't answer that. In case someone wants to do so, I'll still present the option.

Example script

; The ! prefix makes sure that we are not actually kicking ourselves out
; If you wilfully kick yourself out (for fun?), there is no point in autorejoin

; The first option: limit autorejoin only to channels #foo, #bar, and #idle
on !*:KICK:#foo,#bar,#idle: if ( $knick == $me ) join $chan

; The second option: if you're an operator and you get kicked, rejoin
on @!*:KICK:#: if ( $knick == $me ) join $chan

Last updated 2003-04-05, Janne 'Geetee' Nikula,