瀏覽代碼

* Fix localhub linking to hub

Bryan Drewery 17 年之前
父節點
當前提交
79cd4c8081
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
     }