Why not adopt me?
NAME
Bot::Cobalt::Plugin::Rehash - Rehash config or langs on-the-fly
SYNOPSIS
Rehash 'cobalt.conf':
!rehash core
Rehash 'channels.conf':
!rehash channels
Rehash 'plugins.conf':
!rehash plugins
All of the above:
!rehash all
Load a different language set:
!rehash langset ebonics
!rehash langset english
DESCRIPTION
Reloads configuration files or language sets on the fly.
Few guarantees regarding consequences are made as of this writing; playing with core configuration options might not necessarily always do what you expect. (Feel free to report as bugs via either RT or e-mail, of course.)
IMPORTANT: The Rehash plugin does not reload plugin-specific configs. For that, use a plugin manager's reload ability. See Bot::Cobalt::Plugin::PluginMgr.
EMITTED EVENTS
Every rehash triggers a Bot_rehashed event, informing the plugin pipeline of the newly reloaded configuration values.
The first event argument is the type of rehash that was performed; it will be one of core, channels, langset, or plugins.
AUTHOR
Jon Portnoy <avenj@cobaltirc.org>