summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-31 19:15:16 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-01-31 19:15:16 +0000
commit3ad620004794b2e8eb907bc4d49f4239c2bee17b (patch)
tree84384528ec9c11b5ace1d64f397a6059b97e08af /src
parente70b4bb129fe1a69af39a8d2c248342224ee375a (diff)
- ircd.c:set_time(): replaced snprintf/report_error combo with
ilog/sendto_realops_flags git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2981 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-rw-r--r--src/ircd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ircd.c b/src/ircd.c
index f4aa6f8..ef6c0ee 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -168,7 +168,6 @@ static struct lgetopt myopts[] = {
void
set_time(void)
{
- static char to_send[IRCD_BUFSIZE];
struct timeval newtime = { .tv_sec = 0, .tv_usec = 0 };
if (gettimeofday(&newtime, NULL) == -1)
@@ -183,10 +182,12 @@ set_time(void)
if (newtime.tv_sec < CurrentTime)
{
- snprintf(to_send, sizeof(to_send),
- "System clock is running backwards - (%lu < %lu)",
- (unsigned long)newtime.tv_sec, (unsigned long)CurrentTime);
- report_error(L_ALL, to_send, me.name, 0);
+ ilog(LOG_TYPE_IRCD, "System clock is running backwards - (%lu < %lu)",
+ (unsigned long)newtime.tv_sec, (unsigned long)CurrentTime);
+ sendto_realops_flags(UMODE_DEBUG, L_ALL, SEND_NOTICE,
+ "System clock is running backwards - (%lu < %lu)",
+ (unsigned long)newtime.tv_sec,
+ (unsigned long)CurrentTime);
set_back_events(CurrentTime - newtime.tv_sec);
}