summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-04-27 12:21:37 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-04-27 12:21:37 +0000
commit9cbf26d5199bdd1f3bd29fb27f181af4b94de02e (patch)
tree55e06d7d68758a6b600446b5dfc95f7c6e330956
parent242a9c17dfe0192860c7876aec881cee6eb8c10e (diff)
downloadirssi-9cbf26d5199bdd1f3bd29fb27f181af4b94de02e.zip
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
-rw-r--r--src/core/commands.h2
1 files changed, 1 insertions, 1 deletions
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;