From 0ac28c290ba5eb682db28e1d2f3ef98dcfa618c5 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 4 Oct 2015 00:14:23 -0400 Subject: [PATCH] fix bot not being able to connect to some strange networks --- src/handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/handler.py b/src/handler.py index 8f4c838..5609660 100644 --- a/src/handler.py +++ b/src/handler.py @@ -30,6 +30,9 @@ def on_privmsg(cli, rawnick, chan, msg, notice = False): try: getattr(var, "CASEMAPPING") except AttributeError: + # some kind of hack for strange networks which don't put server name in some of the NOTICEs on startup + if not rawnick: + return if notice and "!" not in rawnick and chan in ("*", "AUTH"): # On-connect message before RPL_ISUPPORT is sent. return