瀏覽代碼

* Don't log child bot logs on a localhub

Bryan Drewery 16 年之前
父節點
當前提交
3f116a558a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/botcmd.c

+ 2 - 1
src/botcmd.c

@@ -542,7 +542,8 @@ static void bot_log(int idx, char *par)
     if (conf.bot->hub || conf.bot->localhub)
       botnet_send_log(idx, from, type, par);
 
-    putlog(type, "@", "(%s) %s", from, par);
+    if (conf.bot->hub)
+      putlog(type, "@", "(%s) %s", from, par);
 
   } else {
     putlog(LOG_ERRORS, "*", "Malformed HL line from %s: %s", from, par);