summaryrefslogtreecommitdiff
path: root/src/datafiles.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-16 02:25:38 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-16 02:25:38 +0000
commitc6e3324b302aa9ef4cf6bdf002719d8bf2908a0b (patch)
treeaabd05d10c6252151fb452b0db428dd985d5a884 /src/datafiles.c
parent98aa38d800a85e4cd295f435424524bbf2f0a3b1 (diff)
Made many of the functions in IRCDProto accept the relative object pointers instea of char* everywhere, and updated TODO
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2706 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/datafiles.c')
-rw-r--r--src/datafiles.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/datafiles.c b/src/datafiles.c
index 920c0e5ef..5292361ac 100644
--- a/src/datafiles.c
+++ b/src/datafiles.c
@@ -18,7 +18,6 @@
#include <fcntl.h>
static int curday = 0;
-static time_t lastwarn = 0;
/*************************************************************************/
@@ -37,7 +36,7 @@ static void rename_database(const char *name, char *ext)
snprintf(destpath, sizeof(destpath), "backups/%s.%s", name, ext);
if (rename(name, destpath) != 0) {
alog("Backup of %s failed.", name);
- ircdproto->SendGlobops(Config.s_OperServ, "WARNING! Backup of %s failed.",
+ ircdproto->SendGlobops(findbot(Config.s_OperServ), "WARNING! Backup of %s failed.",
name);
}
}