1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 17:13:14 +02:00

Move assign and unassign to new events, allow for halting too should modules desire that.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2107 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2009-02-18 22:59:16 +00:00
parent 3fe5aa037a
commit 187c45059a
5 changed files with 42 additions and 14 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ void load_config() {
* When anope saves her databases, we do the same.
**/
int save_ignoredb(int argc, char **argv) {
if ((argc >= 1) && (!stricmp(argv[0], EVENT_STOP)))
if ((argc >= 1) && (!stricmp(argv[0], "stop")))
save_ignore_db();
return MOD_CONT;
@@ -149,7 +149,7 @@ int save_ignoredb(int argc, char **argv) {
* When anope backs her databases up, we do the same.
**/
int backup_ignoredb(int argc, char **argv) {
if ((argc >= 1) && (!stricmp(argv[0], EVENT_STOP))) {
if ((argc >= 1) && (!stricmp(argv[0], "stop"))) {
if (debug)
alog("[os_ignore_db] debug: Backing up %s database...", IgnoreDB);
ModuleDatabaseBackup(IgnoreDB);