Explorar o código

Merge branch 'maint'

* maint:
  Give hint on bot when disconnected from hub for reason
Bryan Drewery %!s(int64=12) %!d(string=hai) anos
pai
achega
2d940d82c1
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  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);
 }