mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
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:
parent
29944234e4
commit
051b0e8994
@ -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):
|
||||
"""<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.
|
||||
|
Loading…
Reference in New Issue
Block a user