Update modules/pawserv.py
All checks were successful
/ check (push) Successful in 10s

This commit is contained in:
Nova Cat 2025-01-21 21:00:41 -08:00
parent 90eb9a1e94
commit a40716a33d

View file

@ -66,7 +66,8 @@ class IRCatModule:
else:
connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :Needs 3 arguments, nickname, password, and email.\r\n", "UTF-8"))
elif len(args) > 0 and args[0].lower() == "identify":
temp = self.sql.nickserv_identify(nick=nick if len(args) == 2 else args[2], password=args[1])
nck = nick if len(args) == 2 else args[2]
temp = self.sql.nickserv_identify(nick=nck, password=args[1])
if temp:
connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :Now, it would've been a successful identification, but this is work in progress.\r\n", "UTF-8"))
else: