summaryrefslogtreecommitdiff
path: root/lib/rbot/config.rb
AgeCommit message (Collapse)Author
2014-03-06[config] adds a new param store_defaultMatthias H
Creates a new option to store the default at first run. This fixes the problem that random auth passwords are not kept, it also allows us to always store the core.db config value.
2009-02-15+ @bot.path and datafile methodsGiuseppe Bilotta
We provide two methods that make it more simple and elegant for botmodules to define paths relative to the bot's own directory (botclass) and to the BotModule's (assumed) non-registry directory. The first method is Irc::Bot#path(), which joins its arguments with the botclass. This method can be used to access datafiles in the bot directory with a much cleaner syntax; and since it uses File.join, the resulting paths are also properly formatted on each platform, which doesn't hurt. Each BotModule now also carries a dirname() method that should return the directory under botclass that holds the BotModule's datafiles. dirname() defaults to the BotModule's name(), but it can be overridden, e.g. for backwards compatibility (see the patch for the quotes plugin), or for BotModules that share their datafiles. Datafiles can be accessed using the BotModule#datafile() method that joins the botclass, the dirname() and whatever other argument is passed.
2008-11-21* fix config validation diagnostics for ArrayValuedmitry kim
2008-06-24config.rb: system wide overrides in /etc/rbot.confGiuseppe Bilotta
2008-05-23* autoflush $stdout in setup wizarddmitry kim
2008-02-13config: Value#get() should return #default(), not @defaultGiuseppe Bilotta
@default may be a Proc, in which case the default value is obtained by calling the Proc. So use #default() that takes care of this already.
2008-02-13config: allow @bot.config[key]=value constructsGiuseppe Bilotta
2007-10-31* (rbot/config) slightly less ugly ArrayValue validation interfaceDmitry Kim
2007-09-12namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*Giuseppe Bilotta
2007-08-23config: allow migration from/to Boolean/IntegerValuesGiuseppe Bilotta
2007-07-09fixed a few strings which used gettext without changing #{} syntaxYaohan Chen
2007-07-09integrated ruby-gettextYaohan Chen
modified a few files to allow translated messages created gettext template file initialized gettext files for Japanese and Simplified Chinese
2007-03-19* config value hook :on_change wasn't called from unset()Dmitry Kim
2007-03-15config was not being saved after unsetting a valueGiuseppe Bilotta
2007-02-14Reset configuration changed status after saving successfullyGiuseppe Bilotta
2007-02-14Only save config file when configuration changedGiuseppe Bilotta
2006-08-29Introduce BotConfigValue permissions, to protect particularly sensitive ↵Giuseppe Bilotta
config options while still allowing access to more innocent ones
2006-08-02Initial factorization of botconfig into kernel functionality and a coremoduleGiuseppe Bilotta
2006-08-02Auth now follows the specs defined in NewAuthModule even though there is no ↵Giuseppe Bilotta
actual auth coremodule. config.rb needs to be split into a class definition file and a coremodule that manages it
2006-07-25New config commands: reset (synonym for unset), add <...> to <...> and rm ↵Giuseppe Bilotta
<...> from <...> to manipulate individual values in BotConfigArrayValues
2006-07-25Fix a bug in config set (particularly important for BotConfigArrayValues)Giuseppe Bilotta
2006-07-25Forgot to stringify an instance of keyGiuseppe Bilotta
2006-07-25Use symbols internally instead of strings for config keys.Giuseppe Bilotta
2006-07-20All lib/rbot files are now upgraded to the new logging featureGiuseppe Bilotta
2006-07-18Improve robustness while saving auth config files and channel quotesGiuseppe Bilotta
2005-12-12found a bugTom Gilbert
2005-09-09bugfixTom Gilbert
2005-08-31a little more robustness around emtpy lookupsTom Gilbert
Also more robustness around reading/writing conf.yaml
2005-08-07try that maybeTom Gilbert
2005-08-07try againTom Gilbert
2005-08-07attempt workaround for missing load_fileTom Gilbert
2005-08-04Thu Aug 04 23:03:30 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Improved ircd recognition of rfc2812.rb * de-string'd, de-cap'd rfc2812.rb, looks less shouty now * moved the Q auth stuff (for quakenet) into a new qauth plugin (untested!) * finish fixing the httputil
2005-08-03Wed Aug 03 15:25:07 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Added french language file (TODO most of the plugins just talk english) * The way the Enum configs were set up, it wasn't possible to add language files to rbot at runtime (the directory was only scanned at startup). Now you can set a values Proc, which is called to return a list of allowed values whenever it's queried. * Added Config module for determining where we were installed. Unfortunately rubygems is a total whore in this regard, and I hope the current hackery I have to do to support it becomes redundant in the future.
2005-08-02 * Fixed the new http.proxy* settings, they work!Tom Gilbert
* Fixed a bug with auth-checking for the config module * misc tweaks
2005-07-30Sat Jul 30 22:33:36 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Config items are now objects, various types are available. * The config wizard will now use registered config items if :wizard is set to true for those items. It will ask questions in the order they were registered. * The config module now works for doing runtime configuration. * misc refactoring
2005-07-30Sat Jul 30 01:19:32 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* config module for configuring the running bot via IRC * BotConfig.register method for various modules and any plugin to register bot configuration which the new config module will expose for them. * various other tweaks as I continue to refactor..
2005-07-29Fri Jul 29 13:07:56 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Moved some stuff out of util.rb into the plugins that actually need them. Those methods didn't belong in util as they were plugin-specific. * moved a few more plugins to use map() where appropriate * made the url plugin only store unique urls
2005-07-28Thu Jul 28 23:45:26 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Reworked the Timer module. The Timer now has a smart thread manager to start/stop the tick() thread. This means the timer isn't called every 0.1 seconds to see what needs doing, which is much more efficient * reworked the ircsocket queue mechanism to use a Timer * reworked the nickserv plugin to use maps * made server.reconnect_wait configurable * added Class tracing mechanism to bin/rbot, use --trace Classname for debugging
2005-07-27this packaging stuff seems to actually be workingTom Gilbert
2005-07-27more work on packaging, use Irc::Config module for storing configuration setTom Gilbert
by install.rb
2005-07-27rework various modules to use the installed directoriesTom Gilbert
2005-07-27move rbot into lib - still rearranging for packaging/installationTom Gilbert