From 051b0e899467dd1d2041e7e4c54c3b00b0280056 Mon Sep 17 00:00:00 2001 From: Ken Spencer Date: Wed, 5 Feb 2014 18:02:20 -0500 Subject: [PATCH] Add command to do specific command on all networks Helps with Announce and other commands that may be need to go multiple networks. --- plugins/Network/plugin.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/Network/plugin.py b/plugins/Network/plugin.py index 0abe49a68..e0fd01a09 100644 --- a/plugins/Network/plugin.py +++ b/plugins/Network/plugin.py @@ -140,6 +140,15 @@ class Network(callbacks.Plugin): """ self.Proxy(otherIrc, msg, commandAndArgs) command = wrap(command, ['admin', ('networkIrc', True), many('something')]) + def cmdall(self, irc, msg, args, commandAndArgs): + """ ... + + Perform (with its associated 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.