mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Minor cosmetic fix in /unignore error message.
Reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577202
This commit is contained in:
parent
b8f7eaad40
commit
bd4189907e
@ -215,7 +215,7 @@ static void cmd_unignore(const char *data)
|
||||
{
|
||||
IGNORE_REC *rec;
|
||||
GSList *tmp;
|
||||
char *mask;
|
||||
char *mask, *mask_orig;
|
||||
void *free_arg;
|
||||
|
||||
if (!cmd_get_params(data, &free_arg, 1, &mask))
|
||||
@ -224,6 +224,10 @@ static void cmd_unignore(const char *data)
|
||||
if (*mask == '\0')
|
||||
cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||
|
||||
/* Save the mask string here since it might be modified in the code
|
||||
* below and we need it to print meaningful error messages. */
|
||||
mask_orig = mask;
|
||||
|
||||
if (is_numeric(mask, ' ')) {
|
||||
/* with index number */
|
||||
tmp = g_slist_nth(ignores, atoi(mask)-1);
|
||||
@ -248,7 +252,7 @@ static void cmd_unignore(const char *data)
|
||||
ignore_update_rec(rec);
|
||||
} else {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
|
||||
TXT_IGNORE_NOT_FOUND, mask);
|
||||
TXT_IGNORE_NOT_FOUND, mask_orig);
|
||||
}
|
||||
cmd_params_free(free_arg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user