diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-12-12 21:32:34 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-12-12 21:39:12 +0100 |
commit | f11630a55cf8775ccf021fa769404af7ef8e5aa1 (patch) | |
tree | db92fdef632f066e1322d779b69a97f98d62790e | |
parent | 3fd359173f62f7ba571f83bd56b515a79d8287e3 (diff) |
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.
-rw-r--r-- | lib/rbot/ircsocket.rb | 6 |
1 files changed, 1 insertions, 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? |