-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: urcd action: commit revision: path_from: revision_from: cee8946718a6dd5f04753f439397973ead89c671: path_to: revision_to:
commit cee8946718a6dd5f04753f439397973ead89c671 Author: root <root@d3v11.ano> Date: Mon May 27 18:35:19 2013 +0000 [urc2sd] update diff --git a/src/urc2sd.pyx b/src/urc2sd.pyx
--- a/src/urc2sd.pyx +++ b/src/urc2sd.pyx @@ -197,7 +197,7 @@ while 1: src = src.lower() if cmd[1] == 'b': BAN[src].append(dst) if cmd[0] == '+' and not dst in BAN[src] else BAN[src].remove(dst) - if cmd[1] == 'e': + elif cmd[1] == 'e': EXCEPT[src].append(dst) if cmd[0] == '+' and not dst in EXCEPT[src] else EXCEPT[src].remove(dst) except: pass @@ -206,8 +206,10 @@ while 1: cmd, src, dst, msg = re_SPLIT(buffer,5)[1:5] msg = re.compile(re.escape(msg).replace('\\*','.*'),re.IGNORECASE).search dst = dst.lower() - if cmd == '367': BAN[dst].append(msg) - if cmd == '348': EXCEPT[dst].append(msg) + if cmd == '367': + if not msg in BAN[dst]: BAN[dst].append(msg) + elif cmd == '348': + if not msg in EXCEPT[dst]: EXCEPT.append(msg) except: pass if INIT:
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 19:08:12 2024