mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
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
This commit is contained in:
parent
242a9c17df
commit
9cbf26d519
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user