mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 05:02:32 +01:00
Network: add all+server+channels and all+channels commands (#1305)
* Network: add all+server+channels and all+channels commands * Network: fix up commands for PR as per @GLolol * Network: fix syntax docs, style, use irc.state.channels, not its keys * move acmd to Admin, remove cmdallchans, can be used by 'cmdall acmd ...'
This commit is contained in:
parent
5e880fd73d
commit
ca037a94c5
@ -350,6 +350,16 @@ class Admin(callbacks.Plugin):
|
|||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
clearq = wrap(clearq)
|
clearq = wrap(clearq)
|
||||||
|
|
||||||
|
def acmd(self, irc, msg, args, commandAndArgs):
|
||||||
|
"""<command> [<arg> ...]
|
||||||
|
|
||||||
|
Perform <command> (with associated <arg>s on all channels on current network."""
|
||||||
|
for channel in irc.state.channels:
|
||||||
|
msg.args[0] = channel
|
||||||
|
self.Proxy(irc, msg, commandAndArgs)
|
||||||
|
acmd = wrap(acmd, ['admin', many('something')])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Class = Admin
|
Class = Admin
|
||||||
|
@ -157,7 +157,7 @@ class Network(callbacks.Plugin):
|
|||||||
command = wrap(command, ['admin', ('networkIrc', True), many('something')])
|
command = wrap(command, ['admin', ('networkIrc', True), many('something')])
|
||||||
|
|
||||||
def cmdall(self, irc, msg, args, commandAndArgs):
|
def cmdall(self, irc, msg, args, commandAndArgs):
|
||||||
"""<command> <args>...
|
"""<command> [<arg> ...]
|
||||||
|
|
||||||
Perform <command> (with its associated <arg>s) on all networks.
|
Perform <command> (with its associated <arg>s) on all networks.
|
||||||
"""
|
"""
|
||||||
@ -165,7 +165,7 @@ class Network(callbacks.Plugin):
|
|||||||
for ircd in ircs:
|
for ircd in ircs:
|
||||||
self.Proxy(ircd, msg, commandAndArgs)
|
self.Proxy(ircd, msg, commandAndArgs)
|
||||||
cmdall = wrap(cmdall, ['admin', many('something')])
|
cmdall = wrap(cmdall, ['admin', many('something')])
|
||||||
|
|
||||||
###
|
###
|
||||||
# whois command-related stuff.
|
# whois command-related stuff.
|
||||||
###
|
###
|
||||||
|
Loading…
Reference in New Issue
Block a user