Przeglądaj źródła

* Fixed hubs not updating NODENAME/OS/USERNAME, which broke updating on new nets.

svn: 2339
Bryan Drewery 21 lat temu
rodzic
commit
cb5df2d85d
2 zmienionych plików z 5 dodań i 1 usunięć
  1. 1 0
      doc/UPDATES
  2. 4 1
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -16,6 +16,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * When a user is removed and is on partyline, they are now booted. (#142)
 * Booting a su'd user now returns the user to their original connection. (Problem when removing +i)
 * (eggdrop1.6) Fixed bot not requesting topic after reseting channel.
+* Fixed hubs not updating NODENAME/OS/USERNAME, which broke updating on new nets.
 
 1.2.6
 * (REVERTED FROM 1.2.3) Disabled all memory allocations after a segfault (Fixes CPU spinning)

+ 4 - 1
src/dcc.c

@@ -254,8 +254,11 @@ bot_version(int idx, char *par)
     putlog(LOG_BOTS, "*", DCC_LINKED, dcc[idx].nick);
     chatout("*** Linked to %s\n", dcc[idx].nick);
 
-    if (bot_hublevel(dcc[idx].user) < 999)
+    if (bot_hublevel(dcc[idx].user) < 999) {
+      if (!bot_aggressive_to(dcc[idx].user))    //not aggressive, so they are technically my uplink.
+        uplink_idx = idx;
       dcc[idx].hub = 1;
+    }
 
     botnet_send_nlinked(idx, dcc[idx].nick, conf.bot->nick, '!', vlocalhub, vbuildts, vversion);
   } else {