Implement query notifications and recognise ZNC's messages

This commit is contained in:
2018-05-07 19:58:19 +01:00
parent 2e2e35cad7
commit 66e7785f6f
8 changed files with 74 additions and 19 deletions

View File

@@ -13,6 +13,9 @@ class Add:
if length > 1:
name = spl[1]
if name.isdigit():
failure("Network name is all numbers. This will break things.")
return
else:
incUsage("add")
return
@@ -71,9 +74,7 @@ class Add:
failure("Protocol must be ssl or plain, not %s" % protocol)
return
try:
int(port)
except:
if not port.isdigit():
failure("Port must be an integer, not %s" % port)
return