mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 13:01:07 -05:00
Grapnel: treat channel names case insensitively
This commit is contained in:
parent
acf23329fc
commit
13bb1bbb96
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user