Error checking in testing for registration message

This commit is contained in:
Mark Veidemanis 2020-10-31 00:13:09 +00:00
parent f3dd102096
commit e403852778
1 changed files with 1 additions and 1 deletions

View File

@ -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"]: