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/url.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'data/rbot/plugins/url.rb') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index d08c24e8..2cee5f4f 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -180,8 +180,7 @@ class UrlPlugin < Plugin Thread.new { handle_urls(m, urls, params[:urls].length) } end - def listen(m) - return unless m.kind_of?(PrivMessage) + def message(m) return if m.address? escaped = URI.escape(m.message, OUR_UNSAFE) -- cgit v1.2.3