messed up the logic for ucmd_unkown

This commit is contained in:
Bill Currie 2005-05-01 04:08:47 +00:00
parent a0612e27b9
commit 8950f3188f
2 changed files with 2 additions and 2 deletions

View file

@ -201,7 +201,7 @@ client_exec_command (client_t *cl, const char *s)
u = (ucmd_t*) Hash_Find (ucmd_table, qtv_args->argv[0]->str);
if (!u) {
if (ucmd_unknown && !ucmd_unknown ()) {
if (!ucmd_unknown || !ucmd_unknown ()) {
qtv_begin_redirect (RD_CLIENT, cl);
qtv_printf ("Bad user command: %s\n", qtv_args->argv[0]->str);
qtv_end_redirect ();

View file

@ -1391,7 +1391,7 @@ SV_ExecuteUserCommand (const char *s)
u = (ucmd_t*) Hash_Find (ucmd_table, sv_args->argv[0]->str);
if (!u) {
if (ucmd_unknown && !ucmd_unknown ()) {
if (!ucmd_unknown || !ucmd_unknown ()) {
SV_BeginRedirect (RD_CLIENT);
SV_Printf ("Bad user command: %s\n", sv_args->argv[0]->str);
SV_EndRedirect ();