mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +01:00
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 9702030bf5
.
This commit is contained in:
parent
d01b9aaa23
commit
8dbbe65a1c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user