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/linkbot.rb | |
parent | 8efdfd2651a720e0dc1681e716d0a23b0429e4fd (diff) |
namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
Diffstat (limited to 'data/rbot/plugins/linkbot.rb')
-rw-r--r-- | data/rbot/plugins/linkbot.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/linkbot.rb b/data/rbot/plugins/linkbot.rb index a922883f..3c2f42b7 100644 --- a/data/rbot/plugins/linkbot.rb +++ b/data/rbot/plugins/linkbot.rb @@ -22,11 +22,11 @@ # servers to make this even easier. class LinkBot < Plugin - BotConfig.register BotConfigArrayValue.new('linkbot.nicks', + Config.register Config::ArrayValue.new('linkbot.nicks', :default => [], :desc => "Nick(s) of the bots that act as channel links across networks") - BotConfig.register BotConfigArrayValue.new('linkbot.message_patterns', + Config.register Config::ArrayValue.new('linkbot.message_patterns', :default => ['^<(\S+?)@(\S+?)>\s+(.*)$', '^\((\S+?)@(\S+?)\)\s+(.*)$'], :desc => "List of regexp which match linkbot messages; each regexp needs to have three captures, which in order are the nickname of the original speaker, network, and original message") # TODO use template strings instead of regexp for user friendliness |