2 Commitit 6d2965036e ... d3c2f01bcf

Tekijä SHA1 Viesti Päivämäärä
  NanashiNoGombe d3c2f01bcf include required headers 3 kuukautta sitten
  NanashiNoGombe 2462d10f8e "Acorn have dried up" error is now 1932 3 kuukautta sitten
2 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  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;
 				}
 			}