From 336fd3bbbec11f7157fe60b2c56094f018350a1c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 5 Jan 2007 15:38:36 +0000 Subject: Fix a bug in quiz.rb listen() --- data/rbot/plugins/quiz.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb index 73f96589..2757c4a0 100644 --- a/data/rbot/plugins/quiz.rb +++ b/data/rbot/plugins/quiz.rb @@ -261,8 +261,8 @@ class QuizPlugin < Plugin # Reimplemented from Plugin # def listen( m ) - return unless @quizzes.has_key?( m.channel.to_s ) return unless m.kind_of?(PrivMessage) + return unless @quizzes.has_key?( m.channel.to_s ) q = @quizzes[m.channel.to_s] return if q.question == nil -- cgit v1.2.3