diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 08:39:28 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 08:39:28 +0000 |
| commit | 809ed7c2c04f2c004be3f8f7d29ff3b4f0e3e0f7 (patch) | |
| tree | 867a1c3ddb9ab32dde2449b1632d2f4f772c6285 /src/datafiles.c | |
| parent | bd56c0fb93b06c1d5f58f83089f12eda5c9e82d9 (diff) | |
Convert various to new name scheme.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1306 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/datafiles.c')
| -rw-r--r-- | src/datafiles.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/datafiles.c b/src/datafiles.c index 6dd7d40dd..10d078f11 100644 --- a/src/datafiles.c +++ b/src/datafiles.c @@ -93,7 +93,7 @@ static dbFILE *open_db_read(const char *service, const char *filename) #ifndef NOT_MAIN log_perror("Can't read %s database %s", service, filename); if (time(NULL) - lastwarn > WarningTimeout) { - anope_cmd_global(NULL, + anope_SendGlobops(NULL, "Write error on %s: Memory allocation failed", filename); lastwarn = time(NULL); @@ -111,7 +111,7 @@ static dbFILE *open_db_read(const char *service, const char *filename) log_perror("Can not read %s database %s", service, f->filename); if (time(NULL) - lastwarn > WarningTimeout) { - anope_cmd_global(NULL, "Write error on %s: %s", f->filename, + anope_SendGlobops(NULL, "Write error on %s: %s", f->filename, strerror(errno)); lastwarn = time(NULL); } @@ -198,7 +198,7 @@ static dbFILE *open_db_write(const char *service, const char *filename, static int walloped = 0; if (!walloped) { walloped++; - anope_cmd_global(NULL, "Can not back up %s database %s", + anope_SendGlobops(NULL, "Can not back up %s database %s", service, filename); } #ifdef _WIN32 @@ -248,7 +248,7 @@ static dbFILE *open_db_write(const char *service, const char *filename, static int walloped = 0; if (!walloped) { walloped++; - anope_cmd_global(NULL, "Can't write to %s database %s", + anope_SendGlobops(NULL, "Can't write to %s database %s", service, filename); } errno = errno_save; @@ -587,7 +587,7 @@ static void rename_database(char *name, char *ext) snprintf(destpath, sizeof(destpath), "backups/%s.%s", name, ext); if (rename(name, destpath) != 0) { alog("Backup of %s failed.", name); - anope_cmd_global(s_OperServ, "WARNING! Backup of %s failed.", + anope_SendGlobops(s_OperServ, "WARNING! Backup of %s failed.", name); } } |
