diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-01 16:48:20 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-01 16:48:20 +0000 |
commit | 6046bf4c5bd9c0c5047269bf690eed03a6848b0b (patch) | |
tree | ac91ae8bba58b1ed029f0b21f3bb0ad711e7628c | |
parent | e5385ceb35c22b2cca00d03241596dcd96582e91 (diff) | |
download | irssi-6046bf4c5bd9c0c5047269bf690eed03a6848b0b.zip |
/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
-rw-r--r-- | src/fe-common/irc/fe-ignore.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fe-common/irc/fe-ignore.c b/src/fe-common/irc/fe-ignore.c index db91826e..4920128b 100644 --- a/src/fe-common/irc/fe-ignore.c +++ b/src/fe-common/irc/fe-ignore.c @@ -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); |