1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

Merge pull request #517 from LemonBoy/unignore

Minor cosmetic fix in /unignore error message.
This commit is contained in:
ailin-nemui 2016-07-13 15:26:37 +02:00 committed by GitHub
commit 8b47196745

View File

@ -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);
}