Explorar el Código

* Disabled autoaway for now as no one likes it

svn: 1585
Bryan Drewery hace 21 años
padre
commit
7721e6b63f
Se han modificado 2 ficheros con 4 adiciones y 2 borrados
  1. 1 1
      doc/UPDATES
  2. 3 1
      src/main.c

+ 1 - 1
doc/UPDATES

@@ -43,7 +43,7 @@ This is a summary of ChangeLog basically.
 * cmd_swhois now shows matching username
 * cmd_botcmd * is now limited to +n only
 * cmd_chhandle did not check if the old handle existed!
-* Simple autoaway on dcc after 10 minutes, will be customizable in the future.
+-(Disabled) Simple autoaway on dcc after 10 minutes, will be customizable in the future.
 * Fixed a problem with what ip was binded to when using '.' as the ip.
 * Fixed some problems with special characters in conf files.
 * cmd_chaninfo/chanset didn't check for +private access correctly.

+ 3 - 1
src/main.c

@@ -502,12 +502,14 @@ static void core_secondly()
   }
 }
 
+/*
 static void check_autoaway()
 {
   for (int i = 0; i < dcc_total; i++)
     if (dcc[i].type && dcc[i].type == &DCC_CHAT && !(dcc[i].u.chat->away) && ((now - dcc[i].timeval) >= 600))
       set_away(i, "Auto away after 10 minutes.");
 }
+*/
 
 static void core_minutely()
 {
@@ -519,7 +521,7 @@ static void core_minutely()
   check_mypid();
 #endif
   check_bind_time(&nowtm);
-  check_autoaway();
+//  check_autoaway();
 /*     flushlogs(); */
 }