From 9cbf26d5199bdd1f3bd29fb27f181af4b94de02e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 27 Apr 2000 12:21:37 +0000 Subject: [PATCH] If we return with cmd_param_error() or cmd_return_error(), call signal_stop() so if the command is bound multiple times (like core, which does the functionality and fe-common which prints the texts) it won't print the error message ever twice. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@190 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/commands.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/commands.h b/src/core/commands.h index f91bc2ce..b4577e70 100644 --- a/src/core/commands.h +++ b/src/core/commands.h @@ -24,7 +24,7 @@ enum { CMDERR_NOT_GOOD_IDEA /* not good idea to do, -yes overrides this */ }; -#define cmd_return_error(a) { signal_emit("error command", 1, GINT_TO_POINTER(a)); return; } +#define cmd_return_error(a) { signal_emit("error command", 1, GINT_TO_POINTER(a)); signal_stop(); return; } #define cmd_param_error(a) { g_free(params); cmd_return_error(a); } extern GSList *commands;