diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-12 22:31:15 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-12 22:31:15 +0000 |
commit | 6f5528a63b44e610a3d25d7fe583399163d7d2da (patch) | |
tree | 0db7c1642d40bd68a85338f4cdbb87a03f5e7747 /data/rbot/plugins/dict.rb | |
parent | 8efdfd2651a720e0dc1681e716d0a23b0429e4fd (diff) |
namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
Diffstat (limited to 'data/rbot/plugins/dict.rb')
-rw-r--r-- | data/rbot/plugins/dict.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/dict.rb b/data/rbot/plugins/dict.rb index 95d9fe2e..dc52dbd9 100644 --- a/data/rbot/plugins/dict.rb +++ b/data/rbot/plugins/dict.rb @@ -22,10 +22,10 @@ DEMAURO_LEMMA = /<anchor>(.*?)(?: - (.*?))<go href="lemma.php\?ID=(\d+)"\/><\/an CHAMBERS_LEMMA = /<p><span class="hwd">(.*?)<\/span> <span class="psa">(.*?)<\/span>(.*?)<\/p>/
class DictPlugin < Plugin
- BotConfig.register BotConfigIntegerValue.new('dict.hits',
+ Config.register Config::IntegerValue.new('dict.hits',
:default => 3,
:desc => "Number of hits to return from a dictionary lookup")
- BotConfig.register BotConfigIntegerValue.new('dict.first_par',
+ Config.register Config::IntegerValue.new('dict.first_par',
:default => 0,
:desc => "When set to n > 0, the bot will return the first paragraph from the first n dictionary hits")
|