]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/games/shiritori.rb
+ use the message() delegate instead of listen() when possible
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / games / shiritori.rb
index 71016e5434ecbde960aa44197641f04c31853fe8..84ee9620d869b566f258529345a0b8c566daad51 100644 (file)
@@ -453,8 +453,7 @@ class ShiritoriPlugin < Plugin
   end
   
   # all messages from a channel is sent to its shiritori game if any
-  def listen(m)
-    return unless m.kind_of?(PrivMessage)
+  def message(m)
     return unless @games.has_key?(m.channel)
     # send the message to the game in the channel to handle it
     @games[m.channel].handle_message m