mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay: stop lowercasing modedelta args, as that can break things like unreal +f
This commit is contained in:
parent
f908e407d4
commit
9a5072824d
@ -2535,7 +2535,7 @@ def modedelta(irc, source, args):
|
|||||||
irc.reply('Cleared the mode delta for %r.' % channel)
|
irc.reply('Cleared the mode delta for %r.' % channel)
|
||||||
else:
|
else:
|
||||||
modes = []
|
modes = []
|
||||||
for modepair in map(str.lower, args[1:]):
|
for modepair in args[1:]:
|
||||||
# Construct mode pairs given the initial query.
|
# Construct mode pairs given the initial query.
|
||||||
m = modepair.split(',', 1)
|
m = modepair.split(',', 1)
|
||||||
if len(m) == 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
|
# Sanity check: you shouldn't be allowed to lock things like op or redirects
|
||||||
# because one misconfiguration can cause serious desyncs.
|
# because one misconfiguration can cause serious desyncs.
|
||||||
if m[0] not in whitelisted_cmodes:
|
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
|
return
|
||||||
|
|
||||||
modes.append(m)
|
modes.append(m)
|
||||||
|
Loading…
Reference in New Issue
Block a user