1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 18:23:13 +02:00

Set unread marker for IRC server/channels/pv buffers when using /away command

This commit is contained in:
Sebastien Helleu
2008-09-30 15:39:25 +02:00
parent 9fa560300f
commit 12421a67da
5 changed files with 32 additions and 15 deletions
+15
View File
@@ -505,6 +505,17 @@ gui_buffer_set_highlight_tags (struct t_gui_buffer *buffer,
}
}
/*
* gui_buffer_set_unread: set unread marker for a buffer
*/
void
gui_buffer_set_unread (struct t_gui_buffer *buffer)
{
if (buffer->type == GUI_BUFFER_TYPE_FORMATED)
buffer->last_read_line = buffer->last_line;
}
/*
* gui_buffer_set: set a buffer property
*/
@@ -537,6 +548,10 @@ gui_buffer_set (struct t_gui_buffer *buffer, const char *property,
gui_hotlist_add (buffer, number, NULL, 1);
}
}
else if (string_strcasecmp (property, "unread") == 0)
{
gui_buffer_set_unread (buffer);
}
if (!buffer)
return;