From 7efde28d99abdc51e7abf0ae6aaf5361dbfaf67a Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 18 Aug 2022 07:20:30 +0100 Subject: [PATCH] Look before you leap to confirming registrations --- modules/regproc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/regproc.py b/modules/regproc.py index 5183f1b..e06a94f 100644 --- a/modules/regproc.py +++ b/modules/regproc.py @@ -96,7 +96,8 @@ def registerAccount(net, num): def confirmAccount(net, num, token): sinst = substitute(net, num, token=token) name = net + str(num) - main.IRCPool[name].msg(sinst["entity"], sinst["confirm"]) + if name in main.IRCPool: + main.IRCPool[name].msg(sinst["entity"], sinst["confirm"]) enableAuthentication(net, num)