diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-03-19 18:41:54 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-03-19 18:41:54 +0000 |
commit | 1a42c5ca1d7caad19f5ad26b4dad51731d597e8d (patch) | |
tree | 32af11d26a238dda9fd81d64edad3736f008ff18 /lib/rbot | |
parent | e91f8ebc7067fd8e46b1426f6d5b66e3349c7bd2 (diff) |
* config value hook :on_change wasn't called from unset()
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/config.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb index d04546c6..a1762988 100644 --- a/lib/rbot/config.rb +++ b/lib/rbot/config.rb @@ -71,6 +71,7 @@ module Irc def unset @manager.config.delete(@key) @manager.changed = true + @on_change.call(@manager.bot, value) if @on_change end # set string will raise ArgumentErrors on failed parse/validate |