Przeglądaj źródła

* Only replay cache if it exists

Bryan Drewery 17 lat temu
rodzic
commit
aba47c7b24
1 zmienionych plików z 2 dodań i 0 usunięć
  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;