diff options
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | docs/EVENTS | 7 | ||||
-rw-r--r-- | include/events.h | 1 | ||||
-rw-r--r-- | src/botserv.c | 2 | ||||
-rw-r--r-- | src/datafiles.c | 2 | ||||
-rw-r--r-- | version.log | 6 |
6 files changed, 17 insertions, 3 deletions
@@ -1,12 +1,14 @@ Anope Version S V N ------------------- Provided by Anope Dev. <dev@anope.org> - 2005 +03/11 A Event for database backups. [ #00] 03/09 A Documentation on the proxy detector in docs/PROXY. [ #00] 03/03 A ShadowIRCD 4.0 beta 7 support added. [ #00] 02/27 A Added multi-file module support. [ #00] 02/13 A Internal Event support, see EVENTS in the doc folder for help [ #00] 02/05 A Support for Unreal 3.2 +I channel mode. [ #00] 02/03 A Merged anope-win32 branch into the main, now Win32 ready. [ #00] +03/11 F EVENT_BOT_ASSIGN now reports channel name instead of bot nick. [ #00] 03/08 F Display of real host instead of vhost on alog(). [ #00] 03/07 F tolower/toupper compiler errors on Win32. [ #00] 03/06 F Services not remove modes correct in some cases. [#308] diff --git a/docs/EVENTS b/docs/EVENTS index bf0b3e7f7..0d7232a1e 100644 --- a/docs/EVENTS +++ b/docs/EVENTS @@ -139,7 +139,7 @@ Anope Internal Events EVENT_BOT_ASSIGN A BotServ bot has been assigned to a channel. - The argument contains the nickname of the bot involved. + The argument contains the name of the channel has been assigned to. EVENT_BOT_CHANGE The properties of a BotServ bot have been changed. @@ -206,6 +206,11 @@ Anope Internal Events The argument is either EVENT_START or EVENT_STOP, to indicate if it's emitted before or after the saving routines. + EVENT_DB_BACKUP + This event is emitted when the databases are backed up. + The event will send EVENT_START when the backup commences, and + EVENT_STOP when it finishes. + EVENT_DEFCON_LEVEL The DefCon level has just been changed. This event is emitted before any DefCon-related action is taken. The internal DefConLevel has diff --git a/include/events.h b/include/events.h index f61e4d935..8dc56fcbd 100644 --- a/include/events.h +++ b/include/events.h @@ -16,6 +16,7 @@ #define EVENT_STOP "stop" #define EVENT_DB_SAVING "db_saving" +#define EVENT_DB_BACKUP "db_backup" #define EVENT_NEWNICK "newnick" #define EVENT_BOT_UNASSIGN "bot_unassign" #define EVENT_BOT_JOIN "bot_join" diff --git a/src/botserv.c b/src/botserv.c index ddabf4297..0eec8f8d9 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -1595,7 +1595,7 @@ static int do_assign(User * u) bot_join(ci); } notice_lang(s_BotServ, u, BOT_ASSIGN_ASSIGNED, bi->nick, ci->name); - send_event(EVENT_BOT_ASSIGN, bi->nick); + send_event(EVENT_BOT_ASSIGN, ci->name); } return MOD_CONT; } diff --git a/src/datafiles.c b/src/datafiles.c index f0e71068d..a95ca1686 100644 --- a/src/datafiles.c +++ b/src/datafiles.c @@ -674,6 +674,7 @@ void backup_databases(void) char ext[9]; + send_event(EVENT_DB_BACKUP, EVENT_START); alog("Backing up databases"); remove_backups(); @@ -695,5 +696,6 @@ void backup_databases(void) rename_database(OperDBName, ext); rename_database(NewsDBName, ext); rename_database(ExceptionDBName, ext); + send_event(EVENT_DB_BACKUP, EVENT_STOP); } } diff --git a/version.log b/version.log index e648d395e..40ced28a4 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="8" -VERSION_BUILD="615" +VERSION_BUILD="616" # $Log$ # +# BUILD : 1.7.8 (616) +# BUGS : +# NOTES : Added EVENT_DB_BACKUP and changed EVENT_BOT_ASSIGN to pass channel name instead of bot nick as argument +# # BUILD : 1.7.8 (615) # BUGS : N/A # NOTES : PTlink has +a |