3 # :title: Config namespace backwards compatibility
5 # The move of everything rbot-related to the Irc::Bot::* namespace from Irc::*
6 # would cause off-repo plugins to fail if they register any configuration key,
7 # so we have to handle this case.
9 # Author:: Giuseppe Bilotta (giuseppe.bilotta@gmail.com)
10 # Copyright:: Copyright (c) 2006 Giuseppe Bilotta
16 def BotConfig.register(*args)
17 warn "deprecated usage: please use Irc::Bot::Config instead of Irc::BotConfig (e.g. Config.register instead of BotConfig.register, Config::<type>Value instead of BotConfig<type>Value"
18 Bot::Config.register(*args)
22 Bot::Config.constants.each { |c|
23 Irc.module_eval("BotConfig#{c} = Bot::Config::#{c}")