1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 03:46:37 +02:00

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

git-svn-id: svn://svn.anope.org/anope/trunk@616 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@464 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-03-11 17:09:30 +00:00
parent 9ef454c643
commit 5d30eeca09
6 changed files with 17 additions and 3 deletions
+2
View File
@@ -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]
+6 -1
View File
@@ -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
+1
View File
@@ -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"
+1 -1
View File
@@ -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;
}
+2
View File
@@ -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);
}
}
+5 -1
View File
@@ -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