mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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)
|
text = privmsgs.getArgs(args)
|
||||||
irc.reply(text, notice=True)
|
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
|
Class = Misc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user