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

* Removed define AUTOAWAY

svn: 1161
Bryan Drewery 22 лет назад
Родитель
Сommit
8b3627b1aa
3 измененных файлов с 1 добавлено и 9 удалено
  1. 0 1
      config.h.in
  2. 1 1
      doc/UPDATES
  3. 0 7
      src/mod/ctcp.mod/ctcp.c

+ 0 - 1
config.h.in

@@ -337,7 +337,6 @@
 
 
 /* Defines for pack features */
 /* Defines for pack features */
 #undef S_AUTHHASH
 #undef S_AUTHHASH
-#undef S_AUTOAWAY
 #undef S_AUTOLOCK
 #undef S_AUTOLOCK
 #undef S_DCCAUTH
 #undef S_DCCAUTH
 #undef S_GARBLESTRINGS
 #undef S_GARBLESTRINGS

+ 1 - 1
doc/UPDATES

@@ -5,7 +5,7 @@ This is a summary of ChangeLog basically.
 * Wrote new 'response' code for misc stuff like kick reasons, and dcc responses...
 * Wrote new 'response' code for misc stuff like kick reasons, and dcc responses...
 * Removed many unnecesary compile defines: (.config controlling them makes more sense)
 * Removed many unnecesary compile defines: (.config controlling them makes more sense)
   ANTITRACE, HIJACKCHECK, LASTCHECK, NODELAY, PROCESSCHECK, PROMISC, AUTHCMDS, CONFEDIT
   ANTITRACE, HIJACKCHECK, LASTCHECK, NODELAY, PROCESSCHECK, PROMISC, AUTHCMDS, CONFEDIT
-  RANDSERVERS, DCCPASS, PSCLOAK, MSGCMDS, UTCTIME
+  RANDSERVERS, DCCPASS, PSCLOAK, MSGCMDS, UTCTIME, AUTOAWAY
   -Moved PSCLOAK entries to misc/responses.txt
   -Moved PSCLOAK entries to misc/responses.txt
 * All dates are UTC (GMT) now.
 * All dates are UTC (GMT) now.
 
 

+ 0 - 7
src/mod/ctcp.mod/ctcp.c

@@ -28,10 +28,8 @@
 int cloak_script = CLOAK_PLAIN;
 int cloak_script = CLOAK_PLAIN;
 
 
 #ifdef LEAF
 #ifdef LEAF
-#ifdef S_AUTOAWAY
 #define AVGAWAYTIME             60
 #define AVGAWAYTIME             60
 #define AVGHERETIME             5
 #define AVGHERETIME             5
-#endif /* S_AUTOAWAY */
 time_t cloak_awaytime = 0;
 time_t cloak_awaytime = 0;
 time_t cloak_heretime = 0;
 time_t cloak_heretime = 0;
 time_t listen_time = 0;
 time_t listen_time = 0;
@@ -315,7 +313,6 @@ void scriptchanged()
   }
   }
 }
 }
 
 
-#ifdef S_AUTOAWAY
 void sendaway()
 void sendaway()
 {
 {
   char awtime[20] = "";
   char awtime[20] = "";
@@ -383,13 +380,11 @@ void sendaway()
     break;
     break;
   }
   }
 }
 }
-#endif /* S_AUTOAWAY */
 
 
 static void ctcp_minutely()
 static void ctcp_minutely()
 {
 {
   int i;
   int i;
 
 
-#ifdef S_AUTOAWAY
   if (server_online) {
   if (server_online) {
     if ((cloak_awaytime == 0) && (cloak_heretime == 0)) {
     if ((cloak_awaytime == 0) && (cloak_heretime == 0)) {
       cloak_heretime = now;
       cloak_heretime = now;
@@ -412,8 +407,6 @@ static void ctcp_minutely()
         sendaway();
         sendaway();
     }
     }
   }
   }
-#endif /* S_AUTOAWAY */
-
 
 
   if (listen_time <= 0) {
   if (listen_time <= 0) {
     for (i = 0; i < dcc_total; i++) {
     for (i = 0; i < dcc_total; i++) {