1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2002-03-11 18:20:42 +00:00 committed by cras
parent f4bd37a406
commit d5564a0e01

View File

@ -37,6 +37,8 @@ void query_init(QUERY_REC *query, int automatic)
MODULE_DATA_INIT(query); MODULE_DATA_INIT(query);
query->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "QUERY"); query->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "QUERY");
query->destroy = (void (*) (WI_ITEM_REC *)) query_destroy; query->destroy = (void (*) (WI_ITEM_REC *)) query_destroy;
query->last_unread_msg = time(NULL);
if (query->server_tag != NULL) { if (query->server_tag != NULL) {
query->server = server_find_tag(query->server_tag); query->server = server_find_tag(query->server_tag);
if (query->server != NULL) { if (query->server != NULL) {