Created event on_shutdown.
This commit is contained in:
1 parent
7f6cd84af8
commit
55071e09d0
2 files changed
+4
No files matched your search
@@ -438,6 +438,9 @@ API::Std::cmd_add('SHUTDOWN', 2, 'cmd.shutdown', \%Core::Cmd::HELP_SHUTDOWN, \&C
|
||||
API::Std::cmd_add('RESTART', 2, 'cmd.restart', \%Core::Cmd::HELP_RESTART, \&Core::Cmd::cmd_restart);
|
||||
API::Std::cmd_add('REHASH', 2, 'cmd.rehash', \%Core::Cmd::HELP_REHASH, \&Core::Cmd::cmd_rehash);
|
||||
API::Std::cmd_add('HELP', 2, 0, \%Core::Cmd::HELP_HELP, \&Core::Cmd::cmd_help);
|
||||
# Core events.
|
||||
API::Std::event_add('on_shutdown');
|
||||
|
||||
|
||||
# Infinite while loop.
|
||||
while (1) {
|
||||
|
||||
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
||||
|
||||
3.0 Indev
|
||||
===============================================================================
|
||||
* Created event on_shutdown.
|
||||
* Shutdown if there are no more IRC connections.
|
||||
* Added the ability to use printf(3) % variables in trans().
|
||||
* Added slog() to API::Log for logging to IRC.
|
||||
|
||||
Reference in new issue
Block a user