2 次代码提交 6d2965036e ... d3c2f01bcf

作者 SHA1 备注 提交日期
  NanashiNoGombe d3c2f01bcf include required headers 5 月之前
  NanashiNoGombe 2462d10f8e "Acorn have dried up" error is now 1932 5 月之前
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 2 0
      BBS2chProxyKeyManager.cpp
  2. 3 2
      BBS2chProxyPoster.cpp

+ 2 - 0
BBS2chProxyKeyManager.cpp

@@ -7,6 +7,8 @@
 #else
 #include "parson/parson.h"
 #endif
+#include <stdlib.h>
+#include <time.h>
 
 extern double getCurrentTime(void);
 extern void log_printf(int level, const char *format ...);

+ 3 - 2
BBS2chProxyPoster.cpp

@@ -100,8 +100,9 @@ static size_t header_callback_bbscgi(char *buffer, size_t size, size_t nitems, v
 						poster->_status = 1;
 					}
 				}
-			} else if (poster->_manageCookies && atoi(ptr) == 1930) {
-				if (poster->_isFirstRun) {
+			} else if (poster->_manageCookies) {
+				int code = atoi(ptr);
+				if ((code == 1932) && poster->_isFirstRun) { // was 1930, 1931
 					poster->_status = 2;
 				}
 			}