Fixed doMode only to do something when there are actual arguments.

This commit is contained in:
Jeremy Fincher 2004-02-17 19:04:24 +00:00
parent c070e66d11
commit 1ef546178c
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class ChannelLogger(irclib.IrcCallback):
def doMode(self, irc, msg):
channel = msg.args[0]
if ircutils.isChannel(channel):
if ircutils.isChannel(channel) and msg.args[1:]:
log = self.getLog(channel)
self.timestamp(log)
log.write('*** %s sets mode: %s %s\n' %