minetest-mods / irc

IRC Mod for Minetest
BSD 2-Clause "Simplified" License
43 stars 31 forks source link

SSL support? #30

Closed YuGiOhJCJ closed 7 years ago

YuGiOhJCJ commented 7 years ago

Hello,

I would like to know if the irc mod supports SSL.

From what I can grep in the code, I would say that the answer is negative:

$ grep -r "ssl"
irc/init.lua:       local work, ssl = pcall(require, "ssl")
irc/init.lua:       s = ssl.wrap(s, params)
$ grep -r "SSL"

But is there any chance to have SSL support soon?

Lots of IRC clients support connection through SSL (qwebirc, xchat, ...) and my IRC server only accepts SSL connections so unfortunately I can't use your Minetest mod because of that.

Thank you. Best regards.

ShadowNinja commented 7 years ago

As your snippet shows, SSL is supported. You just have to install LuaSec somewhere where the IRC mod can find it and set irc.secure = true.

YuGiOhJCJ commented 7 years ago

Wow it works! Thank you. Problem solved.