3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-03 08:04:07 +01:00

coreplugin: remove irc.connected check

This is misleading when the network fails to connect at daemon start, for example. Reverts parts of c5acd5c and 2080a39.
This commit is contained in:
James Lu 2016-04-30 16:35:27 -07:00
parent 064cb9b6aa
commit ef4cb8b773

View File

@ -396,12 +396,3 @@ def rehash(irc, source, args):
else:
irc.reply("Done.")
def main(irc=None):
# This is a global sanity check, to make sure the protocol module is doing
# its job.
if irc and not irc.connected.wait(2):
log.warning('(%s) IRC network %s (protocol %s) has not set '
'irc.connected state after 2 seconds - this may be a bug '
'in the protocol module, and will cause plugins like '
'relay to not work correctly!', irc.name, irc.name,
irc.protoname)