From e403852778d42e28f4f544b7f324bc561f4eccde Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 31 Oct 2020 00:13:09 +0000 Subject: [PATCH] Error checking in testing for registration message --- modules/regproc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/regproc.py b/modules/regproc.py index 4ad63a4..101c752 100644 --- a/modules/regproc.py +++ b/modules/regproc.py @@ -81,7 +81,7 @@ def registerTest(c): inst = selectInst(c["net"]) if inst["check"] == False: return - if "msg" in c.keys(): + if "msg" in c.keys() and not c["msg"] == None: if inst["checktype"] == "msg": if c["type"] == "query": if inst["checkmsg"] in c["msg"] and c["nick"] == inst["entity"]: