Explorar o código

* Only replay cache if it exists

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

+ 2 - 0
src/mod/server.mod/server.c

@@ -373,6 +373,8 @@ char *splitnicks(char **rest)
 }
 
 void replay_cache(int idx, FILE *f) {
+  if (!cacheq.head) return;
+
   struct msgq *r = NULL;
   char *p_ptr = NULL, *p = NULL;