ソースを参照

* Only replay cache if it exists

Bryan Drewery 17 年 前
コミット
aba47c7b24
1 ファイル変更2 行追加0 行削除
  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;