From 9a5072824d1620f00d09f7e693427d2d51323a93 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 14 Dec 2017 13:40:47 -0800 Subject: [PATCH] relay: stop lowercasing modedelta args, as that can break things like unreal +f --- plugins/relay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/relay.py b/plugins/relay.py index 14bac95..4aa16a8 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -2535,7 +2535,7 @@ def modedelta(irc, source, args): irc.reply('Cleared the mode delta for %r.' % channel) else: modes = [] - for modepair in map(str.lower, args[1:]): + for modepair in args[1:]: # Construct mode pairs given the initial query. m = modepair.split(',', 1) if len(m) == 1: @@ -2544,7 +2544,7 @@ def modedelta(irc, source, args): # Sanity check: you shouldn't be allowed to lock things like op or redirects # because one misconfiguration can cause serious desyncs. if m[0] not in whitelisted_cmodes: - irc.error('Setting mode %r is not supported for modedelta.' % m[0]) + irc.error('Setting mode %r is not supported for modedelta (case sensitive).' % m[0]) return modes.append(m)