Skip to content

Commit

Permalink
Merge pull request #19 from ebroder/ssl
Browse files Browse the repository at this point in the history
Allow connecting to SSL-enabled IRC servers
  • Loading branch information
tbuehlmann committed Aug 20, 2012
2 parents 682a365 + 439d633 commit 28b439b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -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`. `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`


`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'`. `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'`.
Expand Down
4 changes: 4 additions & 0 deletions lib/ponder/connection.rb
Expand Up @@ -13,6 +13,10 @@ def connection_completed
@thaum.register @thaum.register
end end


def post_init
start_tls if @thaum.config.ssl
end

def unbind def unbind
@thaum.connected = false @thaum.connected = false
@thaum.process_callbacks :disconnect, {} @thaum.process_callbacks :disconnect, {}
Expand Down

0 comments on commit 28b439b

Please sign in to comment.