made nickserv auth less race-condition-ey
This commit is contained in:
parent
87c5f14218
commit
7586114e73
2
stuff.py
2
stuff.py
|
@ -120,6 +120,8 @@ def stuff(bot, sock):
|
|||
if (
|
||||
line.command == "376" or line.command == "422"
|
||||
): # 376 is RPL_ENDOFMOTD and 422 is ERR_NOMOTD
|
||||
if config.server.nickserv_auth == True:
|
||||
auth()
|
||||
send(irctokens.build("CAP", ["LS", "302"]).format())
|
||||
elif line.command == "CAP" and line.params[1] == "LS":
|
||||
if server_caps == []:
|
||||
|
|
Loading…
Reference in New Issue