From 99cc5fca228a7d4a73307d88904857e34a791b65 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 16 Sep 2007 06:44:19 +0000 Subject: url plugin: add 'url info' as a synonym for 'urls info', and document the command --- data/rbot/plugins/url.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins/url.rb') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index e3cecb6b..65439178 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -49,7 +49,7 @@ class UrlPlugin < Plugin end def help(plugin, topic="") - "urls [=4] => list last urls mentioned in current channel, urls search [=4] => search for matching urls. In a private message, you must specify the channel to query, eg. urls [max], urls search [max] " + "url info => display link info for (set url.display_link_info > 0 if you want the bot to do it automatically when someone writes an url), urls [=4] => list last urls mentioned in current channel, urls search [=4] => search for matching urls. In a private message, you must specify the channel to query, eg. urls [max], urls search [max] " end def get_title_from_html(pagedata) @@ -275,6 +275,7 @@ end plugin = UrlPlugin.new plugin.map 'urls info *urls', :action => 'info' +plugin.map 'url info *urls', :action => 'info' plugin.map 'urls search :channel :limit :string', :action => 'search', :defaults => {:limit => 4}, :requirements => {:limit => /^\d+$/}, -- cgit v1.2.3