From 5e9cd406f11fdb73c1521195e864297449471408 Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Tue, 30 May 2000 07:35:52 +0000 Subject: [PATCH] Author: Isomer Log message: Fixed stats l Hopefully IPcheck ghosts should get killed everywhere. Fixed warning message in s_conf.c. Testing required: * /stats l * IPcheck code. Esp connecting lots of people all around the network then connecting the servers up and trying to push it over the 255 user limit. :) git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@241 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ircd/m_stats.c | 2 +- ircd/s_conf.c | 2 +- ircd/s_user.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ircd/m_stats.c b/ircd/m_stats.c index 8d24d07..ca9f39d 100644 --- a/ircd/m_stats.c +++ b/ircd/m_stats.c @@ -204,7 +204,7 @@ int m_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) if (!(doall || wilds) && 0 != ircd_strcmp(name, acptr->name)) continue; send_reply(sptr, SND_EXPLICIT | RPL_STATSLINKINFO, - "%s %u %u %u %u %u :%Tu", acptr->name, + "%s %u %u %u %u %u :%Tu", (*acptr->name) ? acptr->name : "", (int)DBufLength(&acptr->sendQ), (int)acptr->sendM, (int)acptr->sendK, (int)acptr->receiveM, (int)acptr->receiveK, CurrentTime - acptr->firsttime); diff --git a/ircd/s_conf.c b/ircd/s_conf.c index a28b545..258d4a0 100644 --- a/ircd/s_conf.c +++ b/ircd/s_conf.c @@ -158,7 +158,7 @@ static void killcomment(struct Client *sptr, char *parv, char *filename) { FBFILE* file = NULL; char line[80]; - char* tmp; + char* tmp = NULL; struct stat sb; struct tm* tm; diff --git a/ircd/s_user.c b/ircd/s_user.c index cb6fd5a..d1912d9 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -660,7 +660,7 @@ int register_user(struct Client *cptr, struct Client *sptr, /* * We ran out of bits to count this */ - return exit_client(cptr, sptr, &me, "More than 255 connections from this address"); + return exit_client(&me, sptr, &me, "More than 255 connections from this address"); } tmpstr = umode_str(sptr); -- 2.20.1