From 7348b16b160cd90c0f97c619ba048c9c9048444d Mon Sep 17 00:00:00 2001 From: "Gergely Polonkai (W00d5t0ck)" Date: Thu, 29 Mar 2012 19:13:00 +0200 Subject: [PATCH] Fixed direction list checking code. Signed-off-by: Gergely Polonkai (W00d5t0ck) --- wmud/interpreter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wmud/interpreter.c b/wmud/interpreter.c index 753b9e4..a827f41 100644 --- a/wmud/interpreter.c +++ b/wmud/interpreter.c @@ -137,9 +137,11 @@ wmud_interpreter_check_directions(GSList *directions, GError **err) { g_set_error(err, WMUD_INTERPRETER_ERROR, WMUD_INTERPRETER_ERROR_DUPCMD, "Direction commands defined in the database are not unique!"); g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Direction commands defined in the databsae are not unique."); + + return FALSE; } - return (!command_found && (find_data.found == 1)); + return !command_found; } /**