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 0b5bd625eb
commit 2f4644f7b3

View File

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