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/url.rb | |
parent | 0e8f24e9b72eaaacc830cd5265a92944f806f587 (diff) |
+ use the message() delegate instead of listen() when possible
Diffstat (limited to 'data/rbot/plugins/url.rb')
-rw-r--r-- | data/rbot/plugins/url.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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) |