mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
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:
parent
4f2be94115
commit
bc0069c02f
3 changed files with 25 additions and 25 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue