Explorar o código

* Cache 005 into DP_CACHE

Bryan Drewery %!s(int64=17) %!d(string=hai) anos
pai
achega
716923d492
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/mod/server.mod/servmsg.c

+ 5 - 0
src/mod/server.mod/servmsg.c

@@ -240,6 +240,11 @@ got005(char *from, char *msg)
 {
   char *tmp = NULL, *p, *p2;
 
+  //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 */
 
   while ((tmp = newsplit(&msg))[0]) {