Przeglądaj źródła

Merge branch 'maint'

* maint:
  Give hint on bot when disconnected from hub for reason
Bryan Drewery 12 lat temu
rodzic
commit
2d940d82c1
2 zmienionych plików z 3 dodań i 0 usunięć
  1. 1 0
      doc/UPDATES
  2. 2 0
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -8,6 +8,7 @@ maint
   * Fix startup crash when some shared library symbols were missing
   * Fix build on systems without working libssp
   * Fix build detecting invalid openssl installations (ones with only static libs)
+  * Give hint on bot when disconnected from hub for reason
 
 1.4.3
   * Default 'set promisc' to ignore since it's usually a false positive

+ 2 - 0
src/dcc.c

@@ -433,6 +433,8 @@ static void
 eof_dcc_bot_new(int idx)
 {
   putlog(LOG_BOTS, "*", "Lost Bot: %s", dcc[idx].nick);
+  if (dcc[idx].hub)
+    putlog(LOG_BOTS, "*", "See log on %s for disconnect reason.\n", dcc[idx].nick);
   killsock(dcc[idx].sock);
   lostdcc(idx);
 }