Forráskód Böngészése

* Fix hub showing itself as down

Bryan Drewery 14 éve
szülő
commit
3abf64bbe8
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/botnet.c

+ 1 - 1
src/botnet.c

@@ -582,7 +582,7 @@ tell_bots(int idx, int up, const char *nodename)
       const char *userNode = (const char*) get_user(&USERENTRY_NODENAME, u);
       const bd::String node(userNode ? userNode : "(unknown)");
       const bool node_match = ((nodename && node.length() && wild_match(nodename, node.c_str())) || !nodename);
-      const bool bot_found = findbot(u->handle);
+      const bool bot_found = u == conf.bot->u || findbot(u->handle);
       const bool up_down_match = (nodename || (!nodename && ((up && bot_found) || (!up && !bot_found))));
       if (group_match || (group.length() == 0 && node_match && up_down_match)) {
         if (nodes.find(node) == nodes.npos) {