mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
Better message for /IGNORE
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2946 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9ab017b3fa
commit
45883d7f36
2 changed files with 11 additions and 13 deletions
|
|
@ -68,10 +68,15 @@ static void ignore_print(int index, IGNORE_REC *rec)
|
|||
|
||||
if (options->len > 1) g_string_truncate(options, options->len-1);
|
||||
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP,
|
||||
TXT_IGNORE_LINE, index,
|
||||
key != NULL ? key : "",
|
||||
levels != NULL ? levels : "", options->str);
|
||||
if (index >= 0) {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP,
|
||||
TXT_IGNORE_LINE, index, key != NULL ? key : "",
|
||||
levels != NULL ? levels : "", options->str);
|
||||
} else {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP,
|
||||
TXT_IGNORED, key != NULL ? key : "",
|
||||
levels != NULL ? levels : "", options->str);
|
||||
}
|
||||
g_string_free(options, TRUE);
|
||||
g_free(key);
|
||||
g_free(levels);
|
||||
|
|
@ -221,14 +226,7 @@ static void cmd_unignore(const char *data)
|
|||
|
||||
static void sig_ignore_created(IGNORE_REC *rec)
|
||||
{
|
||||
char *key, *levels;
|
||||
|
||||
key = ignore_get_key(rec);
|
||||
levels = bits2level(rec->level);
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
|
||||
TXT_IGNORED, key, levels);
|
||||
g_free(key);
|
||||
g_free(levels);
|
||||
ignore_print(-1, rec);
|
||||
}
|
||||
|
||||
static void sig_ignore_destroyed(IGNORE_REC *rec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue