diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-07 01:02:13 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-07 01:02:13 +0200 |
commit | e00ea339ca3baaa9cfe74f6cec85c36e83307b61 (patch) | |
tree | 9f2515638d34e52dea99a63a1fc1d3ab970781c9 /data/rbot/plugins/games/shiritori.rb | |
parent | 0e8f24e9b72eaaacc830cd5265a92944f806f587 (diff) |
+ use the message() delegate instead of listen() when possible
Diffstat (limited to 'data/rbot/plugins/games/shiritori.rb')
-rw-r--r-- | data/rbot/plugins/games/shiritori.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/data/rbot/plugins/games/shiritori.rb b/data/rbot/plugins/games/shiritori.rb index 71016e54..84ee9620 100644 --- a/data/rbot/plugins/games/shiritori.rb +++ b/data/rbot/plugins/games/shiritori.rb @@ -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 |