I am totally new to tcl, I can write little bit mirc scripts but I don’t know how to write for tcl.
Let me explain where I use this script for:
We have a lot floods in our channels, flooders use well-known flood script by loading the clones from a proxy list.
However there are only 3 irc servers which lets connect proxies.
I made a script, which does /whois on everyone joining to our channels so this way the script sees where users join from (IRC server)
If we get flooded I set this extra mirc client OP so it bans people joining from those servers, if the flood is over I deop the client where the script is on. It sets only the bans and my own client set the enforced bans so it doesn’t kick our regular users from our channel because they are in my friends list.
This way the flooders don’t even get the change to flood, because they get banned and kicked on their join so there is no time over to flood.
Since I have new eggdrops I thought I can use this on my bots
I did search in the forum and tcl scripts section and I couldn’t find any script, which does this.
If anyone will take a look for me I really appreciate it

This is the script:
Code: Select all
raw 311:*.*: {
set %channelnick $2
set %channelident $3
set %channelhost $4
}
raw 312:*irc.mzima.net*: {
ban -ku16000 #channel %channelhost
}
raw 312:*irc.choopa.net*: {
ban -ku16000 #channel %channelhost
}
raw 312:*irc.inet.tele.dk*: {
ban -ku16000 #channel %channelhost
}
on *:join:#channel: {
whois $nick
}
