|
|
@ -32,6 +32,7 @@ class SpamKickerBot(irc.bot.SingleServerIRCBot): |
|
|
|
def __init__(self, botconfig): |
|
|
|
def __init__(self, botconfig): |
|
|
|
self.botconfig = botconfig |
|
|
|
self.botconfig = botconfig |
|
|
|
irc.bot.SingleServerIRCBot.__init__(self, botconfig.server_list, botconfig.nickname, botconfig.realname) |
|
|
|
irc.bot.SingleServerIRCBot.__init__(self, botconfig.server_list, botconfig.nickname, botconfig.realname) |
|
|
|
|
|
|
|
self.connection.set_keepalive(interval=120) |
|
|
|
self.spammers = ExpiringDict(max_age_seconds=300, max_len=100) |
|
|
|
self.spammers = ExpiringDict(max_age_seconds=300, max_len=100) |
|
|
|
|
|
|
|
|
|
|
|
def on_nicknameinuse(self, c, e): |
|
|
|
def on_nicknameinuse(self, c, e): |
|
|
|