summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2007-10-31 17:30:27 +0000
committerYaohan Chen <yaohan.chen@gmail.com>2007-10-31 17:30:27 +0000
commit0098d5bd2b7b85012fc0f4efb8f9ce4e5f277a45 (patch)
tree8b657c107343ad14d230b83e8e5313a15ddbb995
parentd999bce9f4402eea13d5f561aaef94fda8072cf8 (diff)
dictclient.rb: make commands threaded
-rw-r--r--data/rbot/plugins/dictclient.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/data/rbot/plugins/dictclient.rb b/data/rbot/plugins/dictclient.rb
index 48bb7ed3..903b3f1e 100644
--- a/data/rbot/plugins/dictclient.rb
+++ b/data/rbot/plugins/dictclient.rb
@@ -198,12 +198,14 @@ plugin = DictClientPlugin.new
plugin.map 'define *phrase [from :database]',
:action => 'cmd_define',
- :defaults => {:database => DICT::ALL_DATABASES}
+ :defaults => {:database => DICT::ALL_DATABASES},
+ :threaded => true
plugin.map 'match *phrase [using :strategy] [from :database]',
:action => 'cmd_match',
:defaults => {:database => DICT::ALL_DATABASES,
- :strategy => DICT::DEFAULT_MATCH_STRATEGY }
+ :strategy => DICT::DEFAULT_MATCH_STRATEGY },
+ :threaded => true
-plugin.map 'dictclient databases', :action => 'cmd_databases'
-plugin.map 'dictclient strategies', :action => 'cmd_strategies'
+plugin.map 'dictclient databases', :action => 'cmd_databases', :thread => true
+plugin.map 'dictclient strategies', :action => 'cmd_strategies', :thread => true