diff options
Diffstat (limited to '')
-rwxr-xr-x | CoupServ.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CoupServ.py b/CoupServ.py index ac5f71d..9634f06 100755 --- a/CoupServ.py +++ b/CoupServ.py @@ -239,11 +239,11 @@ try: elif command == b"PRIVMSG": try: if userlist[source]["opertype"] == b"NetAdmin": - if (args[0] == config["sid"].encode("UTF-8")+b"000000") or (args[0][0:1] == b"#" and args[1][0:1] == b"-"): + if (args[0] == config["sid"].encode("UTF-8")+b"000000") or (args[0][0:1] == b"#" and args[1][0:3] == b"\x0302"): if args[0][0:1] == b"#": chan = args[0] resp = chan - args[1] = args[1][1:] + args[1] = args[1][3:] else: resp = source chan = False @@ -255,7 +255,7 @@ try: if len(cmd) == 0: continue - elif cmd[0] == b":": + elif cmd[0:1] == b":": send(args[1]) elif cmd == b"get": if argv[0] == b"uid": |