1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04: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:
Timo Sirainen 2000-06-01 16:48:20 +00:00 committed by cras
parent e5385ceb35
commit 6046bf4c5b

View File

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