Update server.py
All checks were successful
Check syntax / check (push) Successful in 7s
All checks were successful
Check syntax / check (push) Successful in 7s
This commit is contained in:
parent
b115f50542
commit
1f832a5b4b
1 changed files with 3 additions and 1 deletions
|
@ -441,7 +441,7 @@ def session(connection, client, ip):
|
|||
if command == "PRIVMSG":
|
||||
args = args[1:]
|
||||
if args[0][0] == ":":
|
||||
args[0] == args[0][1:]
|
||||
args[0] = args[0][1:]
|
||||
if len(args) == 0:
|
||||
connection.sendall(bytes(f":{server} 461 {pending} {command} :Not enough parameters\r\n","UTF-8"))
|
||||
elif args[0].upper() == "PULL":
|
||||
|
@ -460,6 +460,8 @@ def session(connection, client, ip):
|
|||
elif command == "NICKSERV" or (command == "PRIVMSG" and args[0].lower() == "nickserv"):
|
||||
if command == "PRIVMSG":
|
||||
args = args[1:]
|
||||
if args[0][0] == ":":
|
||||
args[0] = args[0][1:]
|
||||
if len(args) == 0:
|
||||
connection.sendall(bytes(f":{server} 461 {pending} {command} :Not enough parameters\r\n","UTF-8"))
|
||||
elif args[0].upper() == "IDENTIFY":
|
||||
|
|
Loading…
Reference in a new issue