Merge pull request 'fix conditional for checking ACK and NAK' (#1) from devel into master
Reviewed-on: mogad0n/ircWebRegistration#1
This commit is contained in:
commit
df7cae6a9e
@ -58,9 +58,9 @@ def ircregister(userip, username, password, email="*"):
|
||||
elif line.command == "433":
|
||||
return "ERR_NICKNAMEINUSE"
|
||||
_send(irctokens.build("CAP", ["REQ", "draft/account-registration"]))
|
||||
if line.command == "CAP" and line.params == ["*", "NAK", "draft/account-registration"]:
|
||||
if line.command == "CAP" and ("NAK" in line.params):
|
||||
return "cap refused"
|
||||
elif line.command == "CAP" and line.params == ["*", "ACK", "draft/account-registration"]:
|
||||
elif line.command == "CAP" and ("ACK" in line.params):
|
||||
to_send = irctokens.build("CAP", ["END"])
|
||||
_send(to_send)
|
||||
if line.command == "PING":
|
||||
|
Loading…
Reference in New Issue
Block a user