From ad7a309c92aa6c1693465e00156f30947a711260 Mon Sep 17 00:00:00 2001 From: swee Date: Wed, 29 Jan 2025 20:09:17 -0800 Subject: [PATCH] Update modules/pawserv.py --- modules/pawserv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/pawserv.py b/modules/pawserv.py index 0c25f57..7dd952c 100644 --- a/modules/pawserv.py +++ b/modules/pawserv.py @@ -37,7 +37,10 @@ class IRCatModule: print("PawServ loaded!") def command(self, command, args, ip, nick, connection, user): try: - if command == "NICKSERV" or (command == "PRIVMSG" and args[0].lower() == "nickserv"): + if command == "NICKSERV" or (command == "PRIVMSG" and args[0].lower() == "nickserv") or command == "PASS": + if command == "PASS": + command = "NICKSERV" + args = ["IDENTIFY", args[1]] if command == "PRIVMSG": args = args[1:] args[0] = args[0][1:] if args[0][0] == ":" else args[0]