From 45ae1dd67efbb11718b77f4433c59ff01b3eead1 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 20 May 2017 19:41:19 -0700 Subject: [PATCH] Merge ts6 and p10 handle_events, handle_privmsg into ircs2s_common (#454) --- protocols/ircs2s_common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index d636cc6..9ff6705 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -95,6 +95,7 @@ class IRCS2SProtocol(Protocol): # 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 utils.isChannel('#' + split_channel[1]): # Note: don't mess with the case of the channel prefix, or ~#channel