Explorar el Código

* Fix localhub linking to hub

Bryan Drewery hace 16 años
padre
commit
79cd4c8081
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/users.c

+ 1 - 1
src/users.c

@@ -1142,7 +1142,7 @@ void autolink_cycle_leaf(char *start)
    if (dcc[i].type) {
     if ((dcc[i].type == &DCC_BOT_NEW) || (dcc[i].type == &DCC_FORK_BOT))
       return;
-    if (dcc[i].type == &DCC_BOT) {
+    if (dcc[i].hub && dcc[i].type == &DCC_BOT) {
       strlcpy(curhub, dcc[i].nick, sizeof(curhub));
       break;
     }