Grapnel: treat channel names case insensitively

This commit is contained in:
James Lu 2022-07-25 23:11:13 -07:00
parent acf23329fc
commit 13bb1bbb96

View File

@ -175,6 +175,7 @@ class Grapnel(callbacks.Plugin):
network = networkIrc.network network = networkIrc.network
token = secrets.token_hex(TOKEN_LENGTH) token = secrets.token_hex(TOKEN_LENGTH)
channel = ircutils.toLower(channel)
cur = self.conn.cursor() cur = self.conn.cursor()
cur.execute(""" cur.execute("""
@ -198,6 +199,7 @@ class Grapnel(callbacks.Plugin):
<network> and <channel> default to the current network and channel if not specified. <network> and <channel> default to the current network and channel if not specified.
""" """
network = networkIrc.network network = networkIrc.network
channel = ircutils.toLower(channel)
cur = self.conn.cursor() cur = self.conn.cursor()
cur.execute(""" cur.execute("""
SELECT id FROM webhooks SELECT id FROM webhooks