diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2007-10-07 03:08:23 +0000 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2007-10-07 03:08:23 +0000 |
commit | 1358de00a473092d1aad2f22e2a73f02ce80e160 (patch) | |
tree | eaf0487417a5105012b51362880ac1760b2a240f /data/rbot | |
parent | 6b997b639acf598a84d2351e06804de108897ecb (diff) |
* dictclient.rb: break help message into topics
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/dictclient.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/data/rbot/plugins/dictclient.rb b/data/rbot/plugins/dictclient.rb index 2fcdf05a..48bb7ed3 100644 --- a/data/rbot/plugins/dictclient.rb +++ b/data/rbot/plugins/dictclient.rb @@ -181,7 +181,16 @@ class DictClientPlugin < Plugin end def help(plugin, topic='') - _("define <phrase> [from <database>] => Show definition of a phrase; match <phrase> [using <strategy>] [from <database>] => Show matching phrases; dictclient databases => List databases; dictclient strategies => List strategies") + case topic + when 'define' + _('define <phrase> [from <database>] => Show definition of a phrase') + when 'match' + _('match <phrase> [using <strategy>] [from <database>] => Show phrases matching the given pattern') + when 'server information' + _('dictclient databases => List databases; dictclient strategies => List strategies') + else + _('look up phrases on the configured DICT server. topics: define, match, server information') + end end end |