Jelajahi Sumber

* Don't log child bot logs on a localhub

Bryan Drewery 16 tahun lalu
induk
melakukan
3f116a558a
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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)
     if (conf.bot->hub || conf.bot->localhub)
       botnet_send_log(idx, from, type, par);
       botnet_send_log(idx, from, type, par);
 
 
-    putlog(type, "@", "(%s) %s", from, par);
+    if (conf.bot->hub)
+      putlog(type, "@", "(%s) %s", from, par);
 
 
   } else {
   } else {
     putlog(LOG_ERRORS, "*", "Malformed HL line from %s: %s", from, par);
     putlog(LOG_ERRORS, "*", "Malformed HL line from %s: %s", from, par);