mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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()
|
||||
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
|
||||
|
@ -157,7 +157,7 @@ class Network(callbacks.Plugin):
|
||||
command = wrap(command, ['admin', ('networkIrc', True), many('something')])
|
||||
|
||||
def cmdall(self, irc, msg, args, commandAndArgs):
|
||||
"""<command> <args>...
|
||||
"""<command> [<arg> ...]
|
||||
|
||||
Perform <command> (with its associated <arg>s) on all networks.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user