mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-01 03:50:41 +01:00
Converted to use world.getIrc.
This commit is contained in:
parent
73deb2036c
commit
0c0f7915f5
@ -55,11 +55,12 @@ class Network(callbacks.Privmsg):
|
|||||||
_whois = {}
|
_whois = {}
|
||||||
_latency = {}
|
_latency = {}
|
||||||
def _getIrc(self, network):
|
def _getIrc(self, network):
|
||||||
network = network.lower()
|
irc = world.getIrc(network)
|
||||||
for irc in world.ircs:
|
if irc:
|
||||||
if irc.network.lower() == network:
|
return irc
|
||||||
return irc
|
else:
|
||||||
raise callbacks.Error, 'I\'m not currently connected to %s.' % network
|
raise callbacks.Error, \
|
||||||
|
'I\'m not currently connected to %s.' % network
|
||||||
|
|
||||||
def connect(self, irc, msg, args, network, server):
|
def connect(self, irc, msg, args, network, server):
|
||||||
"""<network> [<host[:port]>]
|
"""<network> [<host[:port]>]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user