mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Fixed an invalid irc.error in the part command.
This commit is contained in:
parent
2ddb080a73
commit
889e99cec6
@ -89,7 +89,7 @@ class AdminCommands(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
args.append(msg.args[0])
|
args.append(msg.args[0])
|
||||||
for arg in args:
|
for arg in args:
|
||||||
if arg not in irc.state.channels:
|
if arg not in irc.state.channels:
|
||||||
irc.error('I\'m not currently in %s' % arg)
|
irc.error(msg, 'I\'m not currently in %s' % arg)
|
||||||
return
|
return
|
||||||
irc.queueMsg(ircmsgs.parts(args, msg.nick))
|
irc.queueMsg(ircmsgs.parts(args, msg.nick))
|
||||||
|
|
||||||
|
@ -77,6 +77,7 @@ class AdminCommandsTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
|
|
||||||
def testPart(self):
|
def testPart(self):
|
||||||
self.assertError('part #foo')
|
self.assertError('part #foo')
|
||||||
|
self.assertRegexp('part #foo', 'currently')
|
||||||
_ = self.getMsg('join #foo') # get the JOIN.
|
_ = self.getMsg('join #foo') # get the JOIN.
|
||||||
_ = self.getMsg(' ') # get the WHO.
|
_ = self.getMsg(' ') # get the WHO.
|
||||||
self.assertError('part #foo #bar')
|
self.assertError('part #foo #bar')
|
||||||
|
Loading…
Reference in New Issue
Block a user