Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / m_stats.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);