mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Fix bug #849302.
This commit is contained in:
parent
a524d72cc1
commit
23968baf49
@ -123,6 +123,11 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
if s:
|
if s:
|
||||||
try:
|
try:
|
||||||
tokens = callbacks.tokenize(s)
|
tokens = callbacks.tokenize(s)
|
||||||
|
if tokens and isinstance(tokens[0], list):
|
||||||
|
s = 'The command called may not be the result ' \
|
||||||
|
'of a nested command.'
|
||||||
|
irc.queueMsg(callbacks.error(msg, s))
|
||||||
|
return
|
||||||
except SyntaxError, e:
|
except SyntaxError, e:
|
||||||
irc.queueMsg(callbacks.error(msg, str(e)))
|
irc.queueMsg(callbacks.error(msg, str(e)))
|
||||||
return
|
return
|
||||||
|
@ -320,6 +320,9 @@ class PrivmsgTestCase(ChannelPluginTestCase):
|
|||||||
self.assertError('load [foo')
|
self.assertError('load [foo')
|
||||||
self.assertError('load foo]')
|
self.assertError('load foo]')
|
||||||
|
|
||||||
|
def testNoEscapingAttributeErrorFromTokenizeWithFirstElementList(self):
|
||||||
|
self.assertError('[plugin list] list')
|
||||||
|
|
||||||
|
|
||||||
class PrivmsgCommandAndRegexpTestCase(PluginTestCase):
|
class PrivmsgCommandAndRegexpTestCase(PluginTestCase):
|
||||||
plugins = ('Utilities',) # Gotta put something.
|
plugins = ('Utilities',) # Gotta put something.
|
||||||
|
Loading…
Reference in New Issue
Block a user