Implement authentication checking on connection
This commit is contained in:
@@ -81,9 +81,14 @@ def registerTest(c):
|
||||
inst = selectInst(c["net"])
|
||||
if inst["check"] == False:
|
||||
return
|
||||
if inst["checktype"] == "msg":
|
||||
if c["type"] == "query":
|
||||
if inst["checkmsg"] in c["msg"] and c["nick"] == inst["entity"]:
|
||||
if "msg" in c.keys():
|
||||
if inst["checktype"] == "msg":
|
||||
if c["type"] == "query":
|
||||
if inst["checkmsg"] in c["msg"] and c["nick"] == inst["entity"]:
|
||||
confirmRegistration(c["net"], c["num"])
|
||||
return
|
||||
if inst["ping"]:
|
||||
if inst["checkmsg2"] in c["msg"] and c["nick"] == inst["entity"]:
|
||||
confirmRegistration(c["net"], c["num"])
|
||||
return
|
||||
elif inst["checktype"] == "mode":
|
||||
|
||||
Reference in New Issue
Block a user