Просмотр исходного кода

* Increased slack time for cookies.

svn: 2199
Bryan Drewery 21 лет назад
Родитель
Сommit
012f9bc49a
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/irc.mod/irc.c

+ 1 - 0
doc/UPDATES

@@ -170,6 +170,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * In config/-C, the ip field for bots can now be either ipv4 or ipv6. (ipv6 field still present)
 * Clearing chanset var now correctly uses defaults.
 * cmd_[net|bot|]version now displays if a bot has been updated and is on timer for restart.
+* Increased slack time for cookies.
 
 
 1.2.2

+ 1 - 1
src/mod/irc.mod/irc.c

@@ -304,7 +304,7 @@ checkcookie(char *chn, char *bnick, char *cookie)
   hash = MD5(tohash);
   if (!(hash[8] == cookie[0] && hash[16] == cookie[1] && hash[18] == cookie[2]))
     return BC_HASH;
-  if (((now + timesync) - optime) > 600)
+  if (((now + timesync) - optime) > 1800)
     return BC_SLACK;
   return 0;
 }