-- 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:

git.thebackupbox.net

urcd

git://git.thebackupbox.net/urcd

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

index 27ac8f06957e3d4c102afc777fce94b6aa10e0f0..

index ..6826e5abf13d4795aec2be4e255a8341480e5890 100644

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