summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/quiz.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-12-22 16:38:17 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-12-22 16:38:17 +0000
commit7b3fba591a635ac86109e701705a7d875833c888 (patch)
treea8bde882ec096167bef78e51b59b585717b6dd3b /data/rbot/plugins/quiz.rb
parent1686b5316059bf3f859dd01c48c4bacae6524f5b (diff)
Only react on PrivMessage in salut and quiz
Diffstat (limited to 'data/rbot/plugins/quiz.rb')
-rw-r--r--data/rbot/plugins/quiz.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/quiz.rb b/data/rbot/plugins/quiz.rb
index 04a869be..73f96589 100644
--- a/data/rbot/plugins/quiz.rb
+++ b/data/rbot/plugins/quiz.rb
@@ -262,6 +262,7 @@ class QuizPlugin < Plugin
#
def listen( m )
return unless @quizzes.has_key?( m.channel.to_s )
+ return unless m.kind_of?(PrivMessage)
q = @quizzes[m.channel.to_s]
return if q.question == nil