From 148dfd1a5aa8e946ee1e1c1ecbb9684da83ef63c Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Thu, 10 Jan 2013 10:45:30 +0100 Subject: [PATCH] Log level fix --- Gemfile.lock | 12 +++++++----- lib/playbot.rb | 15 +++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 53dfa53..6fe9f93 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 d214150..963729b 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 # -- GitLab