mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
core: make network.channels and channel keys private by default. Otherwise these can reveal secret information.
This commit is contained in:
parent
f6209a90c2
commit
620a90f4a7
@ -291,13 +291,13 @@ def registerNetwork(name, password='', ssl=False, sasl_username='',
|
|||||||
completed.""") % name))
|
completed.""") % name))
|
||||||
registerGlobalValue(network, 'channels', SpaceSeparatedSetOfChannels([],
|
registerGlobalValue(network, 'channels', SpaceSeparatedSetOfChannels([],
|
||||||
_("""Determines what channels the bot will join only on %s.""") %
|
_("""Determines what channels the bot will join only on %s.""") %
|
||||||
name))
|
name, private=True))
|
||||||
registerGlobalValue(network, 'ssl', registry.Boolean(ssl,
|
registerGlobalValue(network, 'ssl', registry.Boolean(ssl,
|
||||||
_("""Determines whether the bot will attempt to connect with SSL
|
_("""Determines whether the bot will attempt to connect with SSL
|
||||||
sockets to %s.""") % name))
|
sockets to %s.""") % name))
|
||||||
registerChannelValue(network.channels, 'key', registry.String('',
|
registerChannelValue(network.channels, 'key', registry.String('',
|
||||||
_("""Determines what key (if any) will be used to join the
|
_("""Determines what key (if any) will be used to join the
|
||||||
channel.""")))
|
channel."""), private=True))
|
||||||
registerGlobalValue(network, 'nick', ValidNickOrEmpty('', _("""Determines
|
registerGlobalValue(network, 'nick', ValidNickOrEmpty('', _("""Determines
|
||||||
what nick the bot will use on this network. If empty, defaults to
|
what nick the bot will use on this network. If empty, defaults to
|
||||||
supybot.nick.""")))
|
supybot.nick.""")))
|
||||||
|
Loading…
Reference in New Issue
Block a user