From 0098d5bd2b7b85012fc0f4efb8f9ce4e5f277a45 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Wed, 31 Oct 2007 17:30:27 +0000 Subject: dictclient.rb: make commands threaded --- data/rbot/plugins/dictclient.rb | 10 ++++++---- 1 file 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 -- cgit v1.2.3