diff --git a/plugins/Network/plugin.py b/plugins/Network/plugin.py index d1271e364..53d3eb908 100644 --- a/plugins/Network/plugin.py +++ b/plugins/Network/plugin.py @@ -150,7 +150,7 @@ class Network(callbacks.Plugin): Gives the bot (with its associated s) on . """ self.Proxy(otherIrc, msg, commandAndArgs, replyIrc=irc) - command = wrap(command, ['admin', ('networkIrc', True), many('something')]) + command = wrap(command, ['admin', ('networkIrc', True), many('anything')]) def cmdall(self, irc, msg, args, commandAndArgs): """ [ ...] @@ -160,7 +160,7 @@ class Network(callbacks.Plugin): ircs = world.ircs for ircd in ircs: self.Proxy(ircd, msg, commandAndArgs) - cmdall = wrap(cmdall, ['admin', many('something')]) + cmdall = wrap(cmdall, ['admin', many('anything')]) ### # whois command-related stuff. diff --git a/plugins/Network/test.py b/plugins/Network/test.py index 436bf5430..5c53e0252 100644 --- a/plugins/Network/test.py +++ b/plugins/Network/test.py @@ -38,6 +38,9 @@ class NetworkTestCase(PluginTestCase): def testCommand(self): self.assertResponse('network command %s echo 1' % self.irc.network, '1') + # empty args should be allowed, see + # https://github.com/progval/Limnoria/issues/1541 + self.assertResponse('network command %s len ""' % self.irc.network, '0') def testCommandRoutesBackToCaller(self): self.otherIrc = getTestIrc("testnet1")