jaraco / irc

Full-featured Python IRC library for Python.
MIT License
390 stars 84 forks source link

SSL Support #215

Closed accedic closed 9 months ago

accedic commented 9 months ago

Do i have to rewritte a wrapper for my bot to support connecting to a server on an ssl port? i'm not sure why this is not out of the box in this library with a check certificate boolean value to pass to the class? Thanks in advance

accedic commented 9 months ago

Jumped the gun to quick and did not fully understand how to do it. This is how i added it to my bot for anybody else looking for an example. Settings are being loaded from a json file. ssl_factory = irc.connection.Factory(wrapper=ssl.wrap_socket) irc.bot.SingleServerIRCBot.init(self, [\ (settings["Server"],\ int(settings["Port"]))],\ settings["nickName"],\ settings["nickName"],connect_factory=ssl_factory)