mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +01:00
ts6: replace str.lower() with irc.toLower() for channel names
(cherry picked from commit 791b124cf70eb63b21aa99f7f4a88038e5cd3f64)
This commit is contained in:
parent
0cc405f51e
commit
f061a2fc68
@ -596,7 +596,7 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
def handle_tb(self, numeric, command, args):
|
def handle_tb(self, numeric, command, args):
|
||||||
"""Handles incoming topic burst (TB) commands."""
|
"""Handles incoming topic burst (TB) commands."""
|
||||||
# <- :42X TB #chat 1467427448 GL!~gl@127.0.0.1 :test
|
# <- :42X TB #chat 1467427448 GL!~gl@127.0.0.1 :test
|
||||||
channel = args[0].lower()
|
channel = self.irc.toLower(args[0])
|
||||||
ts = args[1]
|
ts = args[1]
|
||||||
setter = args[2]
|
setter = args[2]
|
||||||
topic = args[-1]
|
topic = args[-1]
|
||||||
@ -608,7 +608,7 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
"""Handles incoming INVITEs."""
|
"""Handles incoming INVITEs."""
|
||||||
# <- :70MAAAAAC INVITE 0ALAAAAAA #blah 12345
|
# <- :70MAAAAAC INVITE 0ALAAAAAA #blah 12345
|
||||||
target = args[0]
|
target = args[0]
|
||||||
channel = args[1].lower()
|
channel = self.irc.toLower(args[1])
|
||||||
try:
|
try:
|
||||||
ts = args[3]
|
ts = args[3]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
@ -626,7 +626,7 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
"""Handles incoming BMASK commands (ban propagation on burst)."""
|
"""Handles incoming BMASK commands (ban propagation on burst)."""
|
||||||
# <- :42X BMASK 1424222769 #dev b :*!test@*.isp.net *!badident@*
|
# <- :42X BMASK 1424222769 #dev b :*!test@*.isp.net *!badident@*
|
||||||
# This is used for propagating bans, not TMODE!
|
# This is used for propagating bans, not TMODE!
|
||||||
channel = args[1].lower()
|
channel = self.irc.toLower(args[1])
|
||||||
mode = args[2]
|
mode = args[2]
|
||||||
ts = int(args[0])
|
ts = int(args[0])
|
||||||
modes = []
|
modes = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user