Explorar o código

* Ported [2550] to 1.2.9 (fixes #188)

svn: 2622
Bryan Drewery %!s(int64=20) %!d(string=hai) anos
pai
achega
672bc8d163
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/core_binds.c

+ 1 - 0
doc/UPDATES

@@ -46,6 +46,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed botcmd -> su/quit causing remote bots to close random socket.
 * Fixed another cmd_whom bug which showed remote users from .botcmd. (#9)
 * Fixed returning from 'su' not returning user to correct channel. (ie, partyline)
+* Fixed cmds showing failed cmdpass. (#188)
 
 1.2.8
 * Fixed [bot]* cmds depending on case of botnicks.

+ 1 - 1
src/core_binds.c

@@ -122,7 +122,7 @@ void real_check_bind_dcc(const char *cmd, int idx, const char *text, Auth *auth)
             strcpy(args, p);
           } else {
             dprintf(idx, "Invalid command password.\nUse: $b%scommand <password> [arguments]$b\n", settings.dcc_prefix);
-            putlog(LOG_CMDS, "*", "$ #%s# %s %s", dcc[idx].nick, cmd, args);
+            putlog(LOG_CMDS, "*", "$ #%s# %s **hidden** %s", dcc[idx].nick, cmd, ++p);
             putlog(LOG_MISC, "*", "%s attempted %s%s with missing or incorrect command password", dcc[idx].nick, settings.dcc_prefix, cmd);
             free(args);
             return;