we need the world

This commit is contained in:
James Vega 2004-08-25 17:05:27 +00:00
parent e0c5dbae43
commit dbc3b59499

View File

@ -45,6 +45,7 @@ from itertools import imap, ifilter
import supybot.conf as conf import supybot.conf as conf
import supybot.utils as utils import supybot.utils as utils
import supybot.world as world
import supybot.ircdb as ircdb import supybot.ircdb as ircdb
import supybot.irclib as irclib import supybot.irclib as irclib
import supybot.ircmsgs as ircmsgs import supybot.ircmsgs as ircmsgs
@ -582,7 +583,7 @@ class Misc(callbacks.Privmsg):
Returns the networks to which the bot is currently connected. Returns the networks to which the bot is currently connected.
""" """
L = ['%s: %s' % (irc.network, irc.server) for irc in world.ircs] L = ['%s: %s' % (ircd.network, ircd.server) for ircd in world.ircs]
utils.sortBy(str.lower, L) utils.sortBy(str.lower, L)
irc.reply(utils.commaAndify(L)) irc.reply(utils.commaAndify(L))