diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 21:02:37 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 21:02:37 +0000 |
commit | 6c305a3d6731191899f4331be56a071dab66d194 (patch) | |
tree | 59a7bf69f0a2b035bc84580552e0745977307a82 /src/datafiles.c | |
parent | f3f1b97a1ab782a3419fe20ae06d3e3535a4ddae (diff) |
Replaced anope_SendGlobops() with direct call to SendGlobops() in IRCDProto class.
Added SendGlobopsInternal() function to IRCDProto class, now SendGlobops() is a stub to handle varargs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1347 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/datafiles.c')
-rw-r--r-- | src/datafiles.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/datafiles.c b/src/datafiles.c index 10d078f11..b5d381c32 100644 --- a/src/datafiles.c +++ b/src/datafiles.c @@ -6,9 +6,9 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * - * $Id$ + * Based on the original code of Services by Andy Church. + * + * $Id$ * */ @@ -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_SendGlobops(NULL, + ircdproto->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_SendGlobops(NULL, "Write error on %s: %s", f->filename, + ircdproto->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_SendGlobops(NULL, "Can not back up %s database %s", + ircdproto->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_SendGlobops(NULL, "Can't write to %s database %s", + ircdproto->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_SendGlobops(s_OperServ, "WARNING! Backup of %s failed.", + ircdproto->SendGlobops(s_OperServ, "WARNING! Backup of %s failed.", name); } } |