ignore_get_key() moved to fe-common, fixed printing "*" ignore key.

Doesn't print unignore messages when /RELOADing config.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1319 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-03-03 20:55:06 +00:00 committed by cras
commit bc0069c02f
3 changed files with 25 additions and 25 deletions

View file

@ -29,6 +29,21 @@
#include "ignore.h"
#include "printtext.h"
static char *ignore_get_key(IGNORE_REC *rec)
{
char *chans, *ret;
if (rec->channels == NULL)
return g_strdup(rec->mask != NULL ? rec->mask : "*" );
chans = g_strjoinv(",", rec->channels);
if (rec->mask == NULL) return chans;
ret = g_strdup_printf("%s %s", rec->mask, chans);
g_free(chans);
return ret;
}
static void ignore_print(int index, IGNORE_REC *rec)
{
GString *options;