Config: Prevent accidental leak of private values on public channels.

This commit is contained in:
Valentin Lorentz 2019-08-25 10:24:57 +02:00
parent d4cac026d4
commit 68de4f8ffd

View File

@ -256,11 +256,11 @@ class Config(callbacks.Plugin):
if private_value: if private_value:
private = True private = True
if len(channels) > 1: if len(channels) > 1:
irc.reply('; '.join([ irc.reply('; '.join(['%s: %s' % (channel, value)
'%s: %s' % (channel, value) for (channel, value) in values]),
for (channel, value) in values])) private=private)
else: else:
irc.reply(values[0][1]) irc.reply(values[0][1], private=private)
channel = wrap(channel, ['channels', 'settableConfigVar', channel = wrap(channel, ['channels', 'settableConfigVar',
additional('text')]) additional('text')])