mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
we need the world
This commit is contained in:
parent
e0c5dbae43
commit
dbc3b59499
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user