Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / ircd.c
index 64395ccb371d63c3c9d71cc136822a1a490cfd99..3afb586dccb8b566bbdf6adcee4406177281ca3d 100644 (file)
@@ -335,7 +335,7 @@ static time_t check_pings(void)
       /* Display message if they have sent a NICK and a USER but no
        * nospoof PONG.
        */
-      if (*cptr->name && *cptr->user->username) {
+      if (*cptr->name && cptr->user && *cptr->user->username) {
         sendto_one(cptr,
             ":%s %d %s :Your client may not be compatible with this server.",
             me.name, ERR_BADPING, cptr->name);