Author: Isomer <isomer@coders.net>
authorPerry Lorier <isomer@undernet.org>
Tue, 30 May 2000 07:35:52 +0000 (07:35 +0000)
committerPerry Lorier <isomer@undernet.org>
Tue, 30 May 2000 07:35:52 +0000 (07:35 +0000)
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
ircd/s_conf.c
ircd/s_user.c

index 8d24d07d8b6c7f2c8c5c0740fb0c0a75bef9f2fd..ca9f39d209bd2da48e4630bd88a38395c9fe04e0 100644 (file)
@@ -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 : "<unregistered>",
                   (int)DBufLength(&acptr->sendQ), (int)acptr->sendM,
                   (int)acptr->sendK, (int)acptr->receiveM,
                   (int)acptr->receiveK, CurrentTime - acptr->firsttime);
index a28b545e97b7920dfea09119cb876f84bdce77e5..258d4a07aaa29659ce2cef0a52b3abf70a0d5584 100644 (file)
@@ -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;
 
index cb6fd5af0efaf3449b757161d8ff09879ca7f3d2..d1912d911f94c9affc8b6ae225776ead56c69e9f 100644 (file)
@@ -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);