diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 373bceb..5edecdf 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log 3.0 Indev =============================================================================== + * SIGHUP now triggers a rehash. * Added core command REHASH. * Moved signal handlers to Lib::Auto. * Renamed src/ to lib/. diff --git a/lib/Lib/Auto.pm b/lib/Lib/Auto.pm index 53a77e7..b08a3a4 100644 --- a/lib/Lib/Auto.pm +++ b/lib/Lib/Auto.pm @@ -240,9 +240,10 @@ sub signal_int # SIGHUP sub signal_hup { + dbug '!!! Caught SIGHUP; rehashing'; + alog '!!! Caught SIGHUP; rehashing'; + rehash(); API::Std::event_run('on_sighup'); - dbug '!!! Caught SIGHUP but rehash is unavailable; ignoring'; - alog '!!! Caught SIGHUP but rehash is unavailable; ignoring'; return 1; }