From 692960076d6e93efa082fd2fc153e24beff99dc0 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 21 Jan 2025 19:56:00 -0800 Subject: [PATCH] Update modules/pawserv.py --- modules/pawserv.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/pawserv.py b/modules/pawserv.py index bfc25d4..12dde49 100644 --- a/modules/pawserv.py +++ b/modules/pawserv.py @@ -29,10 +29,14 @@ class IRCatModule: args = args[1:] args[0] = args[0][1:] if args[0][0] == ":" else args[0] if len(args) > 0 and args[0].lower() == "identify": - connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :Feature not implemented in PawServ plugin yet.\r\n", "UTF-8")) + temp = self.sql.nickserv_identify(nick=nick if len(args) == 2 else args[2], password=args[1]) + if temp: + pass + else: + connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :Invalid username/password.\r\n", "UTF-8")) else: connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :NickServ Usage:\r\n","UTF-8")) - connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :IDENTIFY pass - Identifies your nickname\r\n","UTF-8")) + connection.sendall(bytes(f":NickServ!Meow@PawServ NOTICE {nick} :IDENTIFY pass - Identifies your nickname\r\n","UTF-8")) return True else: return False