Kaynağa Gözat

Limit where cookies_disabled is reset

Bryan Drewery 10 yıl önce
ebeveyn
işleme
3aecc04b14
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/mod/server.mod/servmsg.cc

+ 1 - 1
src/mod/server.mod/servmsg.cc

@@ -320,6 +320,7 @@ got004(char *from, char *msg)
   bool connect_burst = 0;
   bool connect_burst = 0;
 
 
   /* cookies won't work on ircu or Unreal or snircd */
   /* cookies won't work on ircu or Unreal or snircd */
+  cookies_disabled = false;
   if (strstr(tmp, "u2.") || strstr(tmp, "Unreal") || strstr(tmp, "snircd")) {
   if (strstr(tmp, "u2.") || strstr(tmp, "Unreal") || strstr(tmp, "snircd")) {
     putlog(LOG_DEBUG, "*", "Disabling cookies as they are not supported on %s", cursrvname);
     putlog(LOG_DEBUG, "*", "Disabling cookies as they are not supported on %s", cursrvname);
     cookies_disabled = true;
     cookies_disabled = true;
@@ -1426,7 +1427,6 @@ static void disconnect_server(int idx, int dolost)
   servidx = -1;
   servidx = -1;
   server_online = 0;
   server_online = 0;
   use_monitor = 0;
   use_monitor = 0;
-  cookies_disabled = false;
   floodless = 0;
   floodless = 0;
   botuserhost[0] = 0;
   botuserhost[0] = 0;
   botuserip[0] = 0; 
   botuserip[0] = 0;