From 89708108915df0a8c7f39361616fcb0abe30ba29 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Wed, 17 Jul 2019 19:00:54 -0400 Subject: [PATCH] use SSL on IRC backend --- source/backends/irc.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/source/backends/irc.rb b/source/backends/irc.rb index a22061a..27992b1 100644 --- a/source/backends/irc.rb +++ b/source/backends/irc.rb @@ -107,14 +107,16 @@ module Backend_IRC @real = Cinch::Bot.new do configure do |cfg| - cfg.server = info[:server] - cfg.nick = info[:nick] || "vrobot4" - cfg.port = info[:port] if info.key? :port - cfg.password = info[:pass] if info.key? :pass - cfg.modes = info[:modes] if info.key? :modes - cfg.channels = info[:channels] if info.key? :channels - cfg.realname = "vrobot4" - cfg.user = "vrobot4" + cfg.server = info[:server] + cfg.nick = info[:nick] || "vrobot4" + cfg.port = info[:port] if info.key? :port + cfg.password = info[:pass] if info.key? :pass + cfg.modes = info[:modes] if info.key? :modes + cfg.channels = info[:channels] if info.key? :channels + cfg.ssl = true + cfg.ssl.verify = true + cfg.realname = "vrobot4" + cfg.user = "vrobot4" cfg.message_split_start = "… " cfg.message_split_end = " …" end