summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-01-05 15:38:36 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-01-05 15:38:36 +0000
commit336fd3bbbec11f7157fe60b2c56094f018350a1c (patch)
tree37f4d2dcd8e191999f027559a498ba2e32470cb2
parentc6a3898633febca8fb62af5ccde9281f600f49e2 (diff)
Fix a bug in quiz.rb listen()
-rw-r--r--data/rbot/plugins/quiz.rb2
1 files changed, 1 insertions, 1 deletions
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