Explorar o código

* Fixed invalid command notice

svn: 625
Bryan Drewery %!s(int64=22) %!d(string=hai) anos
pai
achega
fb99efcd1f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core_binds.c

+ 1 - 1
src/core_binds.c

@@ -78,7 +78,7 @@ void check_bind_dcc(const char *cmd, int idx, const char *text)
   }
 #endif /* S_DCCPASS */
   x = check_bind(BT_dcc, cmd, &fr, dcc[idx].user, idx, text);
-  if (x == 0)
+  if (x == -1)
     dprintf(idx, "What?  You need '%shelp'\n", dcc_prefix);
   else if (x & BIND_RET_LOG) {
      putlog(LOG_CMDS, "*", "#%s# %s %s", dcc[idx].nick, cmd, text);