Changed command to badCommand.

This commit is contained in:
Jeremy Fincher 2004-02-02 03:24:03 +00:00
parent b119f94ed4
commit e8e5e11a51
2 changed files with 2 additions and 3 deletions

View File

@ -45,7 +45,6 @@ import utils
import world
import ircutils
import unpreserve
from structures import PersistentDictionary
def fromChannelCapability(capability):
"""Returns a (channel, capability) tuple from a channel capability."""
@ -403,7 +402,7 @@ class IrcChannel(object):
class Creator(object):
def command(self, command, rest, lineno):
def badCommand(self, command, rest, lineno):
raise ValueError, 'Invalid command on line %s: %s' % (lineno, command)
class IrcUserCreator(Creator):

View File

@ -68,7 +68,7 @@ class Reader(object):
command = getattr(self.creator, command)
command(rest, lineno)
else:
self.creator.command(command, rest, lineno)
self.creator.badCommand(command, rest, lineno)
if self.modifiedCreator:
self.creator.finish()