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

* Leaf bots weren't dumping partyline members on link

svn: 1017
Bryan Drewery 22 лет назад
Родитель
Сommit
4947dc7fa1
4 измененных файлов с 7 добавлено и 3 удалено
  1. 1 0
      doc/UPDATES
  2. 4 1
      src/botnet.c
  3. 1 1
      src/botnet.h
  4. 1 1
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -12,6 +12,7 @@ This is a summary of ChangeLog basically.
 8.+take now does +oooo on remaining bots instead of individual +o lines.
 9.Bots now record: USERNAME, NODENAME (shell host), OS in .whois.
 10.+private checking was segfaulting some cmds under certain conditions.
+11.Leaf bots weren't sharing partyline members on link.
 
 1.1.7
 

+ 4 - 1
src/botnet.c

@@ -747,6 +747,7 @@ void tell_bottree(int idx)
   /* Hop information: (9d) */
   dprintf(idx, "Average hops: %3.1f, total bots: %d\n", ((float) tothops) / ((float) tands), tands + 1);
 }
+#endif /* HUB */
 
 /* Dump list of links to a new bot
  */
@@ -755,6 +756,7 @@ void dump_links(int z)
   register int i;
   register size_t l;
   char x[1024] = "";
+#ifdef HUB
   tand_t *bot = NULL;
 
   for (bot = tandbot; bot; bot = bot->next) {
@@ -768,6 +770,8 @@ void dump_links(int z)
                                                         bot->buildts, bot->version ? bot->version : "");
      tputs(dcc[z].sock, x, l);
   }
+#endif /* HUB */
+
   /* Dump party line members */
   for (i = 0; i < dcc_total; i++) {
     if (dcc[i].type == &DCC_CHAT) {
@@ -788,7 +792,6 @@ void dump_links(int z)
     }
   }
 }
-#endif /* HUB */
 
 int in_chain(char *who)
 {

+ 1 - 1
src/botnet.h

@@ -20,8 +20,8 @@ int in_chain(char *);
 #ifdef HUB
 void tell_bots(int);
 void tell_bottree(int);
-void dump_links(int);
 #endif /* HUB */
+void dump_links(int);
 int botlink(char *, int, char *);
 int botunlink(int, char *, char *);
 void addbot(char *, char *, char *, char, int, time_t, char *);

+ 1 - 1
src/dcc.c

@@ -309,8 +309,8 @@ static void bot_version(int idx, char *par)
 
 #ifdef HUB
   botnet_send_nlinked(idx, dcc[idx].nick, conf.bot->nick, '!', vlocalhub, vbuildts, vversion);
-  dump_links(idx);
 #endif /* HUB */
+  dump_links(idx);
 
   touch_laston(dcc[idx].user, "linked", now);
   dcc[idx].type = &DCC_BOT;