From: Giuseppe Bilotta Date: Fri, 12 Dec 2008 20:32:34 +0000 (+0100) Subject: ircsocket: clean up opt parsing X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=f11630a55cf8775ccf021fa769404af7ef8e5aa1;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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. --- 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?