mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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
|
a nick such as services@this.network.server then you you should set this to
|
||||||
False.""")))
|
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',
|
registerGlobalValue(supybot.protocols.irc, 'umodes',
|
||||||
registry.String('', _("""Determines what user modes the bot will request
|
registry.String('', _("""Determines what user modes the bot will request
|
||||||
from the server when it first connects. Many people might choose +i; some
|
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()
|
assert 'ssl' in globals()
|
||||||
certfile = getattr(conf.supybot.networks, self.irc.network) \
|
certfile = getattr(conf.supybot.networks, self.irc.network) \
|
||||||
.certfile()
|
.certfile()
|
||||||
|
if not certfile:
|
||||||
|
certfile = conf.supybot.protocols.irc.certfile()
|
||||||
if not certfile:
|
if not certfile:
|
||||||
certfile = None
|
certfile = None
|
||||||
elif not os.path.isfile(certfile):
|
elif not os.path.isfile(certfile):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user