This is my second script submission for Hawkee members.
a very harsh channel limiter where you have predefined the amount of channels a user can be in whilst in your channel also. at the moment this is set to 6 channels. which means they can be in 6rooms at the same time. if they join with anymore than that.. bye bye :D
kicks and bans.
Obviously... change #channel to your channel
and the > 6 to number of rooms you wish the trigger to take effect from.
Then edit the "Room limit is ..... number
i have had a small issue in it working in other channels other than the one i have set it too.. but hopefully someone out there can do a debug for me.that is the only issue though. otherwise it is ok.
comments please?
cheers, Cheiron
on @*:join:#channel:{ whois $nick }
raw 319:*:{
set %nochannels $3-
if ($numtok(%nochannels,32) > 6) {
var %i = $chan(0)
while (%i) {
if ($2 ison $chan(%i)) {
kick $chan(%i) $2 Room limit is 6 as defined in the channel rules
ban $chan(%i) $2 3
}
dec %i
}
unset %nochannels
}
}
this was always gonna be the issue lol... this is a tad complex to what i am usually writing. thought i would try and be smart. heh! the coding worked. ops are auto protected by my bot anyway hence why i think i forgot to include ops in the loop. also my ops use a set mode to escape the script knowing where they are... i wont post the mode for obvious reasons lol..
ty for the /var suggestion as a replacement for the /set /unset also.
much appreciated