From 13bb1bbb963c8d80ce78b35a7939db75ea262cc8 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 25 Jul 2022 23:11:13 -0700 Subject: [PATCH] Grapnel: treat channel names case insensitively --- Grapnel/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Grapnel/plugin.py b/Grapnel/plugin.py index b63748f..6f9bf74 100644 --- a/Grapnel/plugin.py +++ b/Grapnel/plugin.py @@ -175,6 +175,7 @@ class Grapnel(callbacks.Plugin): network = networkIrc.network token = secrets.token_hex(TOKEN_LENGTH) + channel = ircutils.toLower(channel) cur = self.conn.cursor() cur.execute(""" @@ -198,6 +199,7 @@ class Grapnel(callbacks.Plugin): and default to the current network and channel if not specified. """ network = networkIrc.network + channel = ircutils.toLower(channel) cur = self.conn.cursor() cur.execute(""" SELECT id FROM webhooks