made nickserv auth less race-condition-ey

This commit is contained in:
jan6 2022-10-05 05:04:56 -07:00
parent 87c5f14218
commit 7586114e73
1 changed files with 2 additions and 0 deletions

View File

@ -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 == []: