~nova/fletcher

492e9a0f21e0599edd5809f0369cb504b2e71968 — Novalinium 4 months ago d1dd778
maybe
1 files changed, 10 insertions(+), 7 deletions(-)

M commandhandler.py
M commandhandler.py => commandhandler.py +10 -7
@@ 1001,13 1001,16 @@ class CommandHandler:
                        message.reference.message_id,
                        bridge["toChannelObject"][i].guild.id,
                    ]
                    cur = conn.cursor()
                    cur.execute(
                        "SELECT toguild, tochannel, tomessage FROM messagemap WHERE fromguild = %s AND fromchannel = %s AND frommessage = %s AND toguild = %s LIMIT 1;",
                        query_params,
                    )
                    metuple = cur.fetchone()
                    conn.commit()
                    if query_params[0] == query_params[3]:
                        metuple = query_params[3:]
                    if metuple is None:
                        cur = conn.cursor()
                        cur.execute(
                            "SELECT toguild, tochannel, tomessage FROM messagemap WHERE fromguild = %s AND fromchannel = %s AND frommessage = %s AND toguild = %s LIMIT 1;",
                            query_params,
                        )
                        metuple = cur.fetchone()
                        conn.commit()
                    if metuple is None:
                        cur = conn.cursor()
                        cur.execute(