From f11630a55cf8775ccf021fa769404af7ef8e5aa1 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 12 Dec 2008 21:32:34 +0100 Subject: [PATCH] ircsocket: clean up opt parsing Irc::Socket initialization now always has opt as last parameter, so don't bother checking if it's a Hash. --- lib/rbot/ircsocket.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb index 496486bb..9adca6ba 100644 --- a/lib/rbot/ircsocket.rb +++ b/lib/rbot/ircsocket.rb @@ -275,11 +275,7 @@ module Irc @spooler = false @lines_sent = 0 @lines_received = 0 - if opts.kind_of?(Hash) and opts.key?(:ssl) - @ssl = opts[:ssl] - else - @ssl = false - end + @ssl = opts[:ssl] end def connected? -- 2.39.5