mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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]
|
channel = msg.args[0]
|
||||||
if msg.args[1] == irc.nick:
|
if msg.args[1] == irc.nick:
|
||||||
if self.registryValue('alwaysRejoin', channel):
|
if self.registryValue('alwaysRejoin', channel):
|
||||||
|
self.log.info('Kicked from %s. Rejoining.' % channel)
|
||||||
networkGroup = conf.supybot.networks.get(irc.network)
|
networkGroup = conf.supybot.networks.get(irc.network)
|
||||||
irc.sendMsg(networkGroup.channels.join(channel))
|
irc.sendMsg(networkGroup.channels.join(channel))
|
||||||
|
else:
|
||||||
|
self.log.info('Kicked from %s. Not auto-rejoining.' % channel)
|
||||||
|
|
||||||
def _sendMsg(self, irc, msg):
|
def _sendMsg(self, irc, msg):
|
||||||
irc.queueMsg(msg)
|
irc.queueMsg(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user