mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 18:44:04 +01:00
core: make network.channels and channel keys private by default. Otherwise these can reveal secret information.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
parent
ac13d09511
commit
910ad6dd62
@ -262,12 +262,12 @@ def registerNetwork(name, password='', ssl=False):
|
|||||||
is completed.""" % name))
|
is completed.""" % name))
|
||||||
registerGlobalValue(network, 'channels', SpaceSeparatedSetOfChannels([],
|
registerGlobalValue(network, 'channels', SpaceSeparatedSetOfChannels([],
|
||||||
"""Space-separated list of channels the bot will join only on %s."""
|
"""Space-separated list of 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 sockets
|
"""Determines whether the bot will attempt to connect with SSL sockets
|
||||||
to %s.""" % name))
|
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 channel."""))
|
"""Determines what key (if any) will be used to join the channel.""", private=True))
|
||||||
return network
|
return network
|
||||||
|
|
||||||
# Let's fill our networks.
|
# Let's fill our networks.
|
||||||
|
Loading…
Reference in New Issue
Block a user