]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/games/wheelfortune.rb
+ use the message() delegate instead of listen() when possible
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / games / wheelfortune.rb
index 37eb63b5e67ca80cfcbe7c56c2b3837b930d4e88..cc9a1446e8c322583ab5d9268088ad1f98fea0e2 100644 (file)
@@ -506,8 +506,8 @@ class WheelOfFortune < Plugin
     end
   end
 
-  def listen(m)
-    return unless m.kind_of?(PrivMessage) and not m.address?
+  def message(m)
+    return if m.address?
     ch = m.channel.irc_downcase(m.server.casemap).intern
     return unless game = @games[ch]
     return unless game.running?