mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-27 12:44:19 +01:00
Changed command to badCommand.
This commit is contained in:
parent
b119f94ed4
commit
e8e5e11a51
@ -45,7 +45,6 @@ import utils
|
|||||||
import world
|
import world
|
||||||
import ircutils
|
import ircutils
|
||||||
import unpreserve
|
import unpreserve
|
||||||
from structures import PersistentDictionary
|
|
||||||
|
|
||||||
def fromChannelCapability(capability):
|
def fromChannelCapability(capability):
|
||||||
"""Returns a (channel, capability) tuple from a channel capability."""
|
"""Returns a (channel, capability) tuple from a channel capability."""
|
||||||
@ -403,7 +402,7 @@ class IrcChannel(object):
|
|||||||
|
|
||||||
|
|
||||||
class Creator(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)
|
raise ValueError, 'Invalid command on line %s: %s' % (lineno, command)
|
||||||
|
|
||||||
class IrcUserCreator(Creator):
|
class IrcUserCreator(Creator):
|
||||||
|
@ -68,7 +68,7 @@ class Reader(object):
|
|||||||
command = getattr(self.creator, command)
|
command = getattr(self.creator, command)
|
||||||
command(rest, lineno)
|
command(rest, lineno)
|
||||||
else:
|
else:
|
||||||
self.creator.command(command, rest, lineno)
|
self.creator.badCommand(command, rest, lineno)
|
||||||
if self.modifiedCreator:
|
if self.modifiedCreator:
|
||||||
self.creator.finish()
|
self.creator.finish()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user