summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/quiz.rb1
-rw-r--r--data/rbot/plugins/salut.rb1
2 files changed, 2 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
diff --git a/data/rbot/plugins/salut.rb b/data/rbot/plugins/salut.rb
index 1ad6540a..6b16a745 100644
--- a/data/rbot/plugins/salut.rb
+++ b/data/rbot/plugins/salut.rb
@@ -69,6 +69,7 @@ class SalutPlugin < Plugin
end
def listen(m)
+ return unless m.kind_of?(PrivMessage)
if @bot.config['salut.address_only']
return unless m.address? or m.message =~ /#{Regexp.escape(@bot.nick)}/
end