mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Some extra error checking.
This commit is contained in:
parent
a26e664cf8
commit
5be5a2c379
@ -132,6 +132,9 @@ class Network(callbacks.Privmsg):
|
||||
on.
|
||||
"""
|
||||
network = self._getNetwork(irc, args)
|
||||
if args:
|
||||
irc.error('I\'m not connected to %s.' % privmsgs.getArgs(args))
|
||||
return
|
||||
badIrc = self._getIrc(network)
|
||||
try:
|
||||
badIrc.driver.reconnect()
|
||||
@ -292,6 +295,9 @@ class Network(callbacks.Privmsg):
|
||||
apply.
|
||||
"""
|
||||
network = self._getNetwork(irc, args)
|
||||
if args:
|
||||
irc.error('I\'m not connected to %s.' % privmsgs.getArgs(args))
|
||||
return
|
||||
otherIrc = self._getIrc(network)
|
||||
otherIrc.queueMsg(ircmsgs.ping('Latency check (from %s).' % msg.nick))
|
||||
self._latency[otherIrc] = (irc, time.time())
|
||||
|
Loading…
Reference in New Issue
Block a user