mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Changed command to badCommand.
This commit is contained in:
parent
b119f94ed4
commit
e8e5e11a51
@ -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):
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user