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

This commit is contained in:
Nova Cat 2025-01-29 20:09:17 -08:00
parent 02e020ff76
commit ad7a309c92

View file

@ -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]