Fix for bug in Network.command.

This commit is contained in:
Jeremy Fincher 2004-12-07 07:12:47 +00:00
parent 5822a249e7
commit 36095341e1

View File

@ -124,14 +124,13 @@ class Network(callbacks.Privmsg):
irc.replySuccess() irc.replySuccess()
reconnect = wrap(reconnect, ['owner', 'networkIrc', additional('text')]) reconnect = wrap(reconnect, ['owner', 'networkIrc', additional('text')])
def command(self, irc, msg, args, otherIrc, command, commandArgs): def command(self, irc, msg, args, otherIrc, commandAndArgs):
"""<network> <command> [<arg> ...] """<network> <command> [<arg> ...]
Gives the bot <command> (with its associated <arg>s) on <network>. Gives the bot <command> (with its associated <arg>s) on <network>.
""" """
self.Proxy(otherIrc, msg, commandArgs) self.Proxy(otherIrc, msg, commandAndArgs)
command = wrap(command, ['admin', ('networkIrc', True), command = wrap(command, ['admin', ('networkIrc', True), many('something')])
'commandName', any('something')])
### ###
# whois command-related stuff. # whois command-related stuff.