Bryan Drewery 22 лет назад
Родитель
Сommit
cce5bba326
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 4 1
      src/core_binds.c

+ 1 - 0
doc/UPDATES

@@ -39,6 +39,7 @@ This is a summary of ChangeLog basically.
 35.Fixed +d|d bots still being opped.
 35.Fixed +d|d bots still being opped.
 36.Fixed a bug with bot links that was causing too many open files errors.
 36.Fixed a bug with bot links that was causing too many open files errors.
 37.Fixed a ton of unchecked buffers in cmds.c.
 37.Fixed a ton of unchecked buffers in cmds.c.
+38.All dcc cmds are now logged regardless if they are valid.
 
 
 1.1.7
 1.1.7
 
 

+ 4 - 1
src/core_binds.c

@@ -85,7 +85,10 @@ void check_bind_dcc(const char *cmd, int idx, const char *text)
 #endif /* S_DCCPASS */
 #endif /* S_DCCPASS */
 
 
   x = check_bind_hits(BT_dcc, cmd, &fr, &hits, dcc[idx].user, idx, args);
   x = check_bind_hits(BT_dcc, cmd, &fr, &hits, dcc[idx].user, idx, args);
-  putlog(LOG_DEBUG, "*", "%s RETURNED: %d", cmd, x);
+
+  if (hits != 1)
+    putlog(LOG_CMDS, "*", "! #%s# %s %s", dcc[idx].nick, cmd, args);
+
   if (hits == 0)
   if (hits == 0)
     dprintf(idx, "What?  You need '%shelp'\n", dcc_prefix);
     dprintf(idx, "What?  You need '%shelp'\n", dcc_prefix);
   else if (hits > 1)
   else if (hits > 1)