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

* cmd_netlag is now HUB only.

svn: 437
Bryan Drewery 22 лет назад
Родитель
Сommit
7146a752bf
2 измененных файлов с 5 добавлено и 2 удалено
  1. 2 1
      doc/UPDATES
  2. 3 1
      src/cmds.c

+ 2 - 1
doc/UPDATES

@@ -47,7 +47,8 @@ This is a summary of ChangeLog basically.
 44.Console channel/flags now correctly shared among bots.
 45.Various cosmetic changes.
 46.Leaf bots now correctly respond to remote userfile changes, (+/-host, chattr, [un]stick, +/-ban...)
-47.Made cmd_botjump m|-
+47.Made cmd_botjump m|-.
+48.cmd_netlag is now HUB only.
 
 1.0.10
 

+ 3 - 1
src/cmds.c

@@ -3613,6 +3613,7 @@ void rcmd_msg(char * tobot, char * frombot, char * fromhand, char * fromidx, cha
 #endif /* LEAF */
 }
 
+#ifdef HUB
 /* netlag */
 static void cmd_netlag(struct userrec * u, int idx, char * par) {
   struct timeval tv;
@@ -3625,6 +3626,7 @@ static void cmd_netlag(struct userrec * u, int idx, char * par) {
   dprintf(idx, STR("Sent ping to all linked bots\n"));
   botnet_send_cmd_broad(-1, botnetnick, u->handle, idx, tmp);
 }
+#endif /* HUB */
 
 void rcmd_ping(char * frombot, char *fromhand, char * fromidx, char * par) {
   char tmp[64];
@@ -4155,8 +4157,8 @@ cmd_t C_dcc[] =
   {"netw", 		"n", 	(Function) cmd_netw, 		NULL},
   {"netps", 		"n", 	(Function) cmd_netps, 		NULL},
   {"netlast", 		"n", 	(Function) cmd_netlast, 	NULL},
-#endif /* HUB */
   {"netlag", 		"m", 	(Function) cmd_netlag, 		NULL},
+#endif /* HUB */
   {"botserver",		"m",	(Function) cmd_botserver,	NULL},
   {"netserver", 	"m", 	(Function) cmd_netserver, 	NULL},
   {"botversion", 	"o", 	(Function) cmd_botversion, 	NULL},