From ef4cb8b773020121da17f29ba182cc2ccff2e86c Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 30 Apr 2016 16:35:27 -0700 Subject: [PATCH] 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. --- coreplugin.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/coreplugin.py b/coreplugin.py index e546075..4eeac7a 100644 --- a/coreplugin.py +++ b/coreplugin.py @@ -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)