core: make network.channels and channel keys private by default. Otherwise these can reveal secret information.

This commit is contained in:
Daniel Folkinshteyn 2012-08-30 15:58:51 -04:00 committed by Valentin Lorentz
parent f6209a90c2
commit 620a90f4a7
1 changed files with 2 additions and 2 deletions

View File

@ -291,13 +291,13 @@ def registerNetwork(name, password='', ssl=False, sasl_username='',
completed.""") % name))
registerGlobalValue(network, 'channels', SpaceSeparatedSetOfChannels([],
_("""Determines what channels the bot will join only on %s.""") %
name))
name, private=True))
registerGlobalValue(network, 'ssl', registry.Boolean(ssl,
_("""Determines whether the bot will attempt to connect with SSL
sockets to %s.""") % name))
registerChannelValue(network.channels, 'key', registry.String('',
_("""Determines what key (if any) will be used to join the
channel.""")))
channel."""), private=True))
registerGlobalValue(network, 'nick', ValidNickOrEmpty('', _("""Determines
what nick the bot will use on this network. If empty, defaults to
supybot.nick.""")))