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

* Port [3303] to 1.2.14
* Clean up some responses to be more obscure



svn: 3304

Bryan Drewery 19 лет назад
Родитель
Сommit
e487b21d3c
4 измененных файлов с 11 добавлено и 5 удалено
  1. 2 2
      src/binary.c
  2. 1 1
      src/chanprog.c
  3. 1 1
      src/misc.c
  4. 7 1
      src/shell.c

+ 2 - 2
src/binary.c

@@ -623,7 +623,7 @@ void reload_bin_data() {
       }
 
       if (server_online)
-        nuke_server("Bot disabled in binary.");
+        nuke_server("bbl");
 
       werr(ERR_BOTDISABLED);
     } else if (!conf.bot) {
@@ -635,7 +635,7 @@ void reload_bin_data() {
       }
 
       if (server_online)
-        nuke_server("Bot removed from binary.");
+        nuke_server("it's been good, cya");
 
       werr(ERR_BADBOT);
     }

+ 1 - 1
src/chanprog.c

@@ -561,7 +561,7 @@ void chanprog()
         botnet_send_chat(-1, conf.bot->nick, "IP changed.");
         botnet_send_bye("IP changed.");
       }
-      fatal("IP changed.", 1);
+      fatal("brb", 1);
     }
 
     free(ip4);

+ 1 - 1
src/misc.c

@@ -636,7 +636,7 @@ readsocks(const char *fname)
         botnet_send_chat(-1, conf.bot->nick, "IP changed.");
         botnet_send_bye("IP changed.");
       }
-      fatal("IP changed.", 1);
+      fatal("brb", 1);
     } else {
       simple_snprintf(nserv, sizeof(nserv), "%s:%d", dcc[servidx].host, dcc[servidx].port);
       add_server(nserv);

+ 7 - 1
src/shell.c

@@ -26,6 +26,7 @@
 #include "bg.h"
 #include "stat.h"
 #include "users.h"
+#include "botnet.h"
 #include "src/mod/server.mod/server.h"
 
 #include <sys/types.h>
@@ -147,7 +148,12 @@ void check_maxfiles()
         else
           bogus--;
     if (bogus >= 150 || failed_close >= 50) {
-      nuke_server("Max FD reached, restarting...");
+      if (tands > 0) {
+        botnet_send_chat(-1, conf.bot->nick, "Max FD reached, restarting...");
+        botnet_send_bye("Max FD reached, restarting...");
+      }
+
+      nuke_server("brb");
       cycle_time = 0;
       restart(-1);
     } else if (bogus >= 100 && (bogus % 10) == 0) {