Implemented /IGNORE -time <seconds>, patch by fuchs.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@527 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-23 14:41:42 +00:00 committed by cras
commit 30afa4a611
3 changed files with 39 additions and 14 deletions

View file

@ -197,6 +197,9 @@ static void ignore_set_config(IGNORE_REC *rec)
if (rec->level == 0 && rec->except_level == 0)
return;
if (rec->time > 0)
return;
node = iconfig_node_traverse("(ignores", TRUE);
node = config_node_section(node, NULL, NODE_TYPE_BLOCK);
@ -263,6 +266,7 @@ static void ignore_destroy(IGNORE_REC *rec)
ignores = g_slist_remove(ignores, rec);
signal_emit("ignore destroyed", 1, rec);
if (rec->time_tag > 0) g_source_remove(rec->time_tag);
if (rec->channels != NULL) g_strfreev(rec->channels);
g_free_not_null(rec->mask);
g_free_not_null(rec->servertag);

View file

@ -10,6 +10,9 @@ typedef struct {
int level; /* ignore these levels */
int except_level; /* don't ignore these levels */
int time; /* time in sec for temp ignores */
int time_tag;
int regexp:1;
int fullword:1;
int replies:1; /* ignore replies to nick in channel */