Răsfoiți Sursa

Explain why bot is rejected

Fixes #51
Bryan Drewery 13 ani în urmă
părinte
comite
5cf46dc694
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/dcc.c

+ 1 - 0
doc/UPDATES

@@ -9,6 +9,7 @@ maint
   * Fix "+d virus" causing bots to enforce deop anyone who ops someone who opped a +d user
   * Fix compiling without TCL support (#50)
   * Reading in pack.cfg will now do some sanity checks
+  * Add better explanation when rejecting botlink due to not being +o (#51)
 
 1.4.0 - http://wraith.botpack.net/milestone/1.4.0
   * Updated server list, 'set -yes servers -' and 'set -yes servers6 -' to get new list.

+ 1 - 1
src/dcc.c

@@ -226,7 +226,7 @@ greet_new_bot(int idx)
   // Reject -o bots, and if we're a localhub who hasnt linked to hub yet, dont allow links in
   if ((conf.bot->hub || conf.bot->localhub) && dcc[idx].user && (!(dcc[idx].user->flags & USER_OP) || (conf.bot->localhub && (dcc[idx].status & STAT_UNIXDOMAIN) && !have_linked_to_hub))) {
     if (!(dcc[idx].user->flags & USER_OP)) {
-      putlog(LOG_BOTS, "*", "Rejecting link from %s", dcc[idx].nick);
+      putlog(LOG_BOTS, "*", "Rejecting link from %s (Bot is not +o)", dcc[idx].nick);
       dprintf(idx, "error You are being rejected.\n");
     } else if (conf.bot->localhub && !have_linked_to_hub) {
       putlog(LOG_BOTS, "*", "Delaying link from %s", dcc[idx].nick);