Add command to do specific command on all networks

Helps with Announce and other commands that may be need to go multiple networks.
This commit is contained in:
Ken Spencer 2014-02-05 18:02:20 -05:00 committed by Valentin Lorentz
parent 29944234e4
commit 051b0e8994

View File

@ -140,6 +140,15 @@ class Network(callbacks.Plugin):
""" """
self.Proxy(otherIrc, msg, commandAndArgs) self.Proxy(otherIrc, msg, commandAndArgs)
command = wrap(command, ['admin', ('networkIrc', True), many('something')]) command = wrap(command, ['admin', ('networkIrc', True), many('something')])
def cmdall(self, irc, msg, args, commandAndArgs):
"""<command> <args>...
Perform <command> (with its associated <arg>s) on all networks.
"""
ircs = world.ircs
for ircd in ircs:
#ircd.queueMsg(ircmsgs.IrcMsg(prefix="", command=commandAndArgs, args="", msg=""))
self.Proxy(ircd, msg, commandAndArgs)
### ###
# whois command-related stuff. # whois command-related stuff.