Przeglądaj źródła

* Begin 1.1.2

svn: 757
Bryan Drewery 22 lat temu
rodzic
commit
14c3a3f2ca
2 zmienionych plików z 3 dodań i 5 usunięć
  1. 1 1
      src/main.c
  2. 2 4
      src/misc.c

+ 1 - 1
src/main.c

@@ -65,7 +65,7 @@ extern conf_t		conffile;
 
 
 const time_t 	buildts = CVSBUILD;		/* build timestamp (UTC) */
-const char	egg_version[1024] = "1.1.1";
+const char	egg_version[1024] = "1.1.2";
 
 #ifdef S_CONFEDIT
 int	do_confedit = 0;		/* show conf menu if -C */

+ 2 - 4
src/misc.c

@@ -702,19 +702,16 @@ void kill_bot(char *s1, char *s2)
 
 /* Update system code
  */
+#ifdef LEAF
 static void updatelocal(void)
 {
   /* let's drop the server connection ASAP */
-#ifdef LEAF
-{
   module_entry *me = NULL;
 
   if ((me = module_find("server", 0, 0))) {
     Function *func = me->funcs;
     (func[SERVER_NUKESERVER]) ("Updating...");
   }
-}
-#endif /* LEAF */
 
   botnet_send_chat(-1, conf.bot->nick, "Updating...");
   botnet_send_bye();
@@ -725,6 +722,7 @@ static void updatelocal(void)
   system(binname); /* start new bot. */
   exit(0);
 }
+#endif /* LEAF */
 
 int updatebin(int idx, char *par, int autoi)
 {