mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Moved the networks command here from the Relay plugin.
This commit is contained in:
parent
f467550400
commit
1c5faf37b2
@ -573,6 +573,15 @@ class Misc(callbacks.Privmsg):
|
||||
text = privmsgs.getArgs(args)
|
||||
irc.reply(text, notice=True)
|
||||
|
||||
def networks(self, irc, msg, args):
|
||||
"""takes no arguments
|
||||
|
||||
Returns the networks to which the bot is currently connected.
|
||||
"""
|
||||
L = ['%s: %s' % (irc.network, irc.server) for irc in world.ircs]
|
||||
utils.sortBy(str.lower, L)
|
||||
irc.reply(utils.commaAndify(L))
|
||||
|
||||
|
||||
Class = Misc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user