Permalink
Browse files

Merge pull request #19 from ebroder/ssl

Allow connecting to SSL-enabled IRC servers
  • Loading branch information...
2 parents 682a365 + 439d633 commit 28b439b6c750779685550b257aeb0909e1750637 Tobias Bühlmann committed Aug 20, 2012
Showing with 8 additions and 0 deletions.
  1. +4 −0 README.md
  2. +4 −0 lib/ponder/connection.rb
View
@@ -46,6 +46,10 @@ Besides the configuration for nick, server and port as shown in the **Getting St
`port` describes the port that is used for the connection. It defaults to `6667`.
+* `ssl`
+
+ If `ssl` is set to `true`, the Thaum will connect to the server using SSL. It defaults to `false`
+
* `nick`
`nick` describes the nick the Thaum will try to register when connecting to the server. It will not be updated if the Thaum changes its nick. It defaults to `'Ponder'`.
View
@@ -13,6 +13,10 @@ def connection_completed
@thaum.register
end
+ def post_init
+ start_tls if @thaum.config.ssl
+ end
+
def unbind
@thaum.connected = false
@thaum.process_callbacks :disconnect, {}

0 comments on commit 28b439b

Please sign in to comment.