Browse Source

* Cache with a nick of '.' since it is ignored and to prevent double msgs

Bryan Drewery 17 years ago
parent
commit
1431877944
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/mod/server.mod/servmsg.c

+ 3 - 3
src/mod/server.mod/servmsg.c

@@ -240,12 +240,12 @@ got005(char *from, char *msg)
 {
   char *tmp = NULL, *p, *p2;
 
+  newsplit(&msg); /* nick */
+
   //Cache the results for later parsing if needed (after a restart)
   //Sending 'VERSION' does not work on all servers, plus this speeds
   //up a restart by removing the need to wait for the information
-  dprintf(DP_CACHE, ":%s 500 %s", from, msg);
-
-  newsplit(&msg); /* nick */
+  dprintf(DP_CACHE, ":%s 500 . %s", from, msg);
 
   while ((tmp = newsplit(&msg))[0]) {
     p = NULL;