mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
parent
7d716aa8f3
commit
fa06f2af34
@ -1064,6 +1064,10 @@ registerGlobalValue(supybot.protocols.irc, 'strictRfc',
|
||||
a nick such as services@this.network.server then you you should set this to
|
||||
False.""")))
|
||||
|
||||
registerGlobalValue(supybot.protocols.irc, 'certfile',
|
||||
registry.String('', _("""Determines what certificate file (if any) the bot
|
||||
will use connect with SSL sockets by default.""")))
|
||||
|
||||
registerGlobalValue(supybot.protocols.irc, 'umodes',
|
||||
registry.String('', _("""Determines what user modes the bot will request
|
||||
from the server when it first connects. Many people might choose +i; some
|
||||
|
@ -307,6 +307,8 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
||||
assert 'ssl' in globals()
|
||||
certfile = getattr(conf.supybot.networks, self.irc.network) \
|
||||
.certfile()
|
||||
if not certfile:
|
||||
certfile = conf.supybot.protocols.irc.certfile()
|
||||
if not certfile:
|
||||
certfile = None
|
||||
elif not os.path.isfile(certfile):
|
||||
|
Loading…
Reference in New Issue
Block a user