mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Fixed bug in doKick.
This commit is contained in:
parent
dfb1b26333
commit
fa878a9289
@ -115,11 +115,18 @@ class ChannelLogger(irclib.IrcCallback):
|
||||
(msg.nick or msg.prefix, channel))
|
||||
|
||||
def doKick(self, irc, msg):
|
||||
(channel, target, kickmsg) = msg.args
|
||||
if len(msg.args) == 3:
|
||||
(channel, target, kickmsg) = msg.args
|
||||
else:
|
||||
(channel, target) = msg.args
|
||||
kickmsg = ''
|
||||
log = self.getLog(channel)
|
||||
self.timestamp(log)
|
||||
log.write('*** %s was kicked by %s (%s)\n' % \
|
||||
(target, msg.nick, kickmsg))
|
||||
if kickmsg:
|
||||
log.write('*** %s was kicked by %s (%s)\n' % \
|
||||
(target, msg.nick, kickmsg))
|
||||
else:
|
||||
log.write('*** %s was kicked by %s\n' % (target, msg.nick)
|
||||
|
||||
def doPart(self, irc, msg):
|
||||
for channel in msg.args[0].split(','):
|
||||
|
Loading…
Reference in New Issue
Block a user