From e00ea339ca3baaa9cfe74f6cec85c36e83307b61 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 7 Apr 2008 01:02:13 +0200 Subject: + use the message() delegate instead of listen() when possible --- data/rbot/plugins/markov.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins/markov.rb') diff --git a/data/rbot/plugins/markov.rb b/data/rbot/plugins/markov.rb index e340d8b8..dcf3b776 100644 --- a/data/rbot/plugins/markov.rb +++ b/data/rbot/plugins/markov.rb @@ -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 -- cgit v1.2.3