Implement query notifications and recognise ZNC's messages
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user