mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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:
parent
f4bd37a406
commit
d5564a0e01
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue