Browse Source

* Don't log child bot logs on a localhub

Bryan Drewery 16 years ago
parent
commit
3f116a558a
1 changed files with 2 additions and 1 deletions
  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);