From f60e17907a8dfc823c4f2b395ebe6656c284cd74 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 1 Aug 2016 18:06:38 -0700 Subject: [PATCH] hybrid, unreal: switch to irc.toLower() for channels --- protocols/hybrid.py | 2 +- protocols/unreal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/hybrid.py b/protocols/hybrid.py index 55c9cb9..fe19d8a 100644 --- a/protocols/hybrid.py +++ b/protocols/hybrid.py @@ -198,7 +198,7 @@ class HybridProtocol(TS6Protocol): def handle_tburst(self, numeric, command, args): """Handles incoming topic burst (TBURST) commands.""" # <- :0UY TBURST 1459308205 #testchan 1459309379 dan!~d@localhost :sdf - channel = args[1].lower() + channel = self.irc.toLower(args[1]) ts = args[2] setter = args[3] topic = args[-1] diff --git a/protocols/unreal.py b/protocols/unreal.py index a4f8e93..9291f7c 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -853,7 +853,7 @@ class UnrealProtocol(TS6BaseProtocol): """Handles incoming INVITEs.""" # <- :GL INVITE PyLink-devel :#a target = self._getUid(args[0]) - channel = args[1].lower() + channel = self.irc.toLower(args[1]) # We don't actually need to process this; it's just something plugins/hooks can use return {'target': target, 'channel': channel}