how do you detect the bot has been banned with tcl
yesterday i wrote a script which prevents a channel take over by an untrusty op
the bot authenticates with the irc server when it connects and becomes an oper, it then op's itself
anyone who sets any modes it doesn't like will get banned and kicked, and the modes removed.
the bot can remove modes and ban people from outside of the room, and when gets back into the room, and gets op, will then kick the users.
now there is one flaw, if the bot is banned and immediantly kicked, it can remove all the modes that the users set, BUT, it cant get back into the channel, to op itself, and kick the users
now i would just bind to a +b mode change, but what if the user only bans the bots host, or part of it, there is not really anyway from that to tell if it is infact the bot that has been banned.
any ideas?