summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-18 22:59:16 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-18 22:59:16 +0000
commit187c45059a692e63c3ea1e1176d98e080ccf374b (patch)
tree882371e64c00f851546078ed328269046ec15b12 /src/modules
parent3fe5aa037ac907a2e557cc5019588344eaf8dc9f (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/os_ignore_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/os_ignore_db.c b/src/modules/os_ignore_db.c
index 7881d7d22..bfb2bf903 100644
--- a/src/modules/os_ignore_db.c
+++ b/src/modules/os_ignore_db.c
@@ -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);