diff --git a/Gemfile.lock b/Gemfile.lock index 53dfa53eec0f0c09d153ddea00d7ad531f72439c..6fe9f93b1a165813153a35c1fb8f0ada85589cd8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,10 @@ GEM remote: http://rubygems.org/ specs: - activerecord (2.3.14) - activesupport (= 2.3.14) - activesupport (2.3.14) + activerecord (1.6.0) + activesupport (3.2.11) + i18n (~> 0.6) + multi_json (~> 1.0) builder (3.1.4) diff-lcs (1.1.3) faraday (0.8.4) @@ -16,6 +17,7 @@ GEM multi_json (~> 1.0) multi_xml httpauth (0.2.0) + i18n (0.6.1) jwt (0.1.5) multi_json (>= 1.0) multi_json (1.5.0) @@ -30,8 +32,8 @@ GEM jwt (~> 0.1.4) multi_json (~> 1.0) rack (~> 1.2) - rack (1.4.1) - rake (0.9.2.2) + rack (1.4.3) + rake (10.0.3) rspec (2.12.0) rspec-core (~> 2.12.0) rspec-expectations (~> 2.12.0) diff --git a/lib/playbot.rb b/lib/playbot.rb index d214150b9327e47dcb785fe66b77101fe8b329d8..963729b0679e5468fe5d7fa1a9c8945dcd5e3d86 100644 --- a/lib/playbot.rb +++ b/lib/playbot.rb @@ -56,6 +56,21 @@ class PlayBot < IRCBot @irc.on_msg self.method(:_in_msg) end + # Overwrite IRCBot#connect_socket + # + # See <https://github.com/Nerdmaster/ruby-irc-yail/issues/9> for more informations. + def connect_socket + @irc = Net::YAIL.new(@options) + + # THIS is the problem: + #setup_reporting(@irc) + + # Simple hook for welcome to allow auto-joining of the channel + @irc.on_welcome self.method(:welcome) + + add_custom_handlers + end + private # Welcome event handler #