diff options
author | Timo Sirainen <cras@irssi.org> | 2002-03-11 18:20:42 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-03-11 18:20:42 +0000 |
commit | d5564a0e01c3e843e79e01f80c6aad5e98a7101a (patch) | |
tree | 3bc4a2e84585df06c3dd90a6b37d04fb555348d1 | |
parent | f4bd37a40681e7e85c758e9d93ece34abbaa557c (diff) | |
download | irssi-d5564a0e01c3e843e79e01f80c6aad5e98a7101a.zip |
New queries should begin with last_unread_msg timestamp set to now. This
fixes /SET autoclose_query >0 + /SET autocreate_own_query ON closing queries
created by your /MSG almost immediately.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2588 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/core/queries.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/queries.c b/src/core/queries.c index 21bb6db4..f4aae6e7 100644 --- a/src/core/queries.c +++ b/src/core/queries.c @@ -37,6 +37,8 @@ void query_init(QUERY_REC *query, int automatic) MODULE_DATA_INIT(query); query->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "QUERY"); query->destroy = (void (*) (WI_ITEM_REC *)) query_destroy; + query->last_unread_msg = time(NULL); + if (query->server_tag != NULL) { query->server = server_find_tag(query->server_tag); if (query->server != NULL) { |