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;
 				}
 			}