From 8dbbe65a1cd814c35d2404480f65be632367e4d5 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 21 Dec 2017 02:11:28 -0800 Subject: [PATCH] ircs2s_common: remove useless statusmsg splitting code We used to do this in order to lowercase the channel part of ~#channel messages correctly, but that is no longer needed as of 9702030bf5437a9749f5435c87d9c7a2757eaadc. --- protocols/ircs2s_common.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index 309073b..5d6d298 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -668,18 +668,6 @@ class IRCS2SProtocol(IRCCommonProtocol): if target.startswith('='): target = '@' + target[1:] - # We use lowercase channels internally, but uppercase UIDs. - # Strip the target of leading prefix modes (for targets like @#channel) - # before checking whether it's actually a channel. - - split_channel = target.split('#', 1) - if len(split_channel) >= 2 and self.is_channel('#' + split_channel[1]): - # Note: don't mess with the case of the channel prefix, or ~#channel - # messages will break on RFC1459 casemapping networks (it becomes ^#channel - # instead). - target = '#'.join((split_channel[0], split_channel[1])) - log.debug('(%s) Normalizing channel target %s to %s', self.name, args[0], target) - return {'target': target, 'text': args[1]} handle_notice = handle_privmsg