summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-16 06:44:19 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-16 06:44:19 +0000
commit99cc5fca228a7d4a73307d88904857e34a791b65 (patch)
treec8b48670f38c50bfd67d4f4caf599cc39aac9a73 /data/rbot/plugins
parent5e3643de09d3b32c68f218ce11ded2f412f6cba5 (diff)
url plugin: add 'url info' as a synonym for 'urls info', and document the command
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/url.rb3
1 files changed, 2 insertions, 1 deletions
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 [<max>=4] => list <max> last urls mentioned in current channel, urls search [<max>=4] <regexp> => search for matching urls. In a private message, you must specify the channel to query, eg. urls <channel> [max], urls search <channel> [max] <regexp>"
+ "url info <url> => display link info for <url> (set url.display_link_info > 0 if you want the bot to do it automatically when someone writes an url), urls [<max>=4] => list <max> last urls mentioned in current channel, urls search [<max>=4] <regexp> => search for matching urls. In a private message, you must specify the channel to query, eg. urls <channel> [max], urls search <channel> [max] <regexp>"
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+$/},