mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Channel: Add hostmask of the user kicking the bot, in the logs.
This commit is contained in:
parent
3da554bde8
commit
efcf9d7837
@ -51,11 +51,13 @@ 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)
|
self.log.info('Kicked from %s by %s. Rejoining.' %
|
||||||
|
(channel, msg.prefix))
|
||||||
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:
|
else:
|
||||||
self.log.info('Kicked from %s. Not auto-rejoining.' % channel)
|
self.log.info('Kicked from %s by %s. Not auto-rejoining.' %
|
||||||
|
(channel, msg.prefix))
|
||||||
|
|
||||||
def _sendMsg(self, irc, msg):
|
def _sendMsg(self, irc, msg):
|
||||||
irc.queueMsg(msg)
|
irc.queueMsg(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user