mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Channel: Log when the bot is kicked.
This commit is contained in:
parent
c56f26b91d
commit
d0f50fb388
@ -51,8 +51,11 @@ class Channel(callbacks.Plugin):
|
||||
channel = msg.args[0]
|
||||
if msg.args[1] == irc.nick:
|
||||
if self.registryValue('alwaysRejoin', channel):
|
||||
self.log.info('Kicked from %s. Rejoining.' % channel)
|
||||
networkGroup = conf.supybot.networks.get(irc.network)
|
||||
irc.sendMsg(networkGroup.channels.join(channel))
|
||||
else:
|
||||
self.log.info('Kicked from %s. Not auto-rejoining.' % channel)
|
||||
|
||||
def _sendMsg(self, irc, msg):
|
||||
irc.queueMsg(msg)
|
||||
|
Loading…
Reference in New Issue
Block a user