mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
/ignore -asd tried to print "unignored" text with NULL argument.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@257 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e5385ceb35
commit
6046bf4c5b
@ -186,9 +186,10 @@ static void cmd_ignore(const char *data)
|
||||
rec->fullword = stristr(args, "-word") != NULL;
|
||||
rec->regexp = stristr(args, "-regexp") != NULL;
|
||||
|
||||
if (rec->level == 0 && rec->except_level == 0)
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_UNIGNORED, rec->mask);
|
||||
else {
|
||||
if (rec->level == 0 && rec->except_level == 0) {
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_UNIGNORED,
|
||||
rec->mask == NULL ? "" : rec->mask);
|
||||
} else {
|
||||
key = ignore_get_key(rec);
|
||||
levels = ignore_get_levels(rec->level, rec->except_level);
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_IGNORED, key, levels);
|
||||
|
Loading…
Reference in New Issue
Block a user