]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/markov.rb
bans plugin: badword checks on plain message
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / markov.rb
index e340d8b8dde858399ec04a2368d4ca89d3d5ed55..dcf3b77679dc7e5ad304fa96a74f5efd8ba16d3b 100644 (file)
@@ -190,8 +190,8 @@ class MarkovPlugin < Plugin
     end
   end
   
-  def listen(m)
-    return unless m.kind_of?(PrivMessage) && m.public?
+  def message(m)
+    return unless m.public?
     return if m.address?
     return if ignore? m.source