Allow /stats to accept long names for the displayed statistics.
[ircu2.10.12-pk.git] / ircd / s_user.c
index 02571b0fb5933c1f7eff34e7e5c9ed269438850a..c2ac9cec30f77acba70b768a26fa9a50ca17e967 100644 (file)
@@ -218,8 +218,10 @@ int hunt_server_cmd(struct Client *from, const char *cmd, const char *tok,
       send_reply(from, ERR_NOSUCHSERVER, to);
       return (HUNTED_NOSUCH);
     }
-  } else if (!(acptr = FindNServer(to)))
+  } else if (!(acptr = FindNServer(to))) {
+    send_reply(from, SND_EXPLICIT | ERR_NOSUCHSERVER, "* :Server has disconnected");
     return (HUNTED_NOSUCH);        /* Server broke off in the meantime */
+  }
 
   if (IsMe(acptr))
     return (HUNTED_ISME);