This commit is contained in:
parent
02e020ff76
commit
ad7a309c92
1 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue