From 1c5faf37b28dc78753e25a3e3dda541f6b7369f2 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 23 Aug 2004 12:14:37 +0000 Subject: [PATCH] Moved the networks command here from the Relay plugin. --- src/Misc.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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