Fix bug that didn't allow commands without arguments in onStart.

This commit is contained in:
Jeremy Fincher 2003-09-06 08:00:46 +00:00
parent 8fa457ec3a
commit 91de0b066c

View File

@ -457,7 +457,7 @@ class Privmsg(irclib.IrcCallback):
if self.isCommand(command):
#debug.printf('%s: %r' % (command, args))
method = getattr(self, command)
line = ' '.join(map(utils.dqrepr, args))
line = '%s %s' % (command, ' '.join(map(utils.dqrepr, args)))
msg = ircmsgs.privmsg(fakeIrc.nick, line, fakeIrc.prefix)
try:
world.startup = True