diff --git a/src/Misc.py b/src/Misc.py index 29c6389c9..f0284cd31 100755 --- a/src/Misc.py +++ b/src/Misc.py @@ -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