Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/hooks.h @ 2190:ee3a40ffcd8b
New option: 'clear_unread_on_carbon'
If the new 'clear_unread_on_carbon' option is set to 1, clear the unread
message flag for a contact whenever an outgoing carbon copy of a message
sent to that contact is received from another client.
---
mcabber/mcabber/commands.c | 2 +-
mcabber/mcabber/hbuf.h | 1 +
mcabber/mcabber/hooks.c | 17 ++++++++++++-----
mcabber/mcabber/hooks.h | 2 +-
mcabber/mcabber/screen.c | 18 ++++++++++++++----
mcabber/mcabber/xmpp.c | 2 +-
mcabber/mcabberrc.example | 5 +++++
7 files changed, 35 insertions(+), 12 deletions(-)
author | Holger Weiß <holger@zedat.fu-berlin.de> |
---|---|
date | Thu, 23 Jul 2015 23:44:45 +0200 |
parents | a54c084af4d6 |
children |
comparison
equal
deleted
inserted
replaced
2189:3b91f6a100f5 | 2190:ee3a40ffcd8b |
---|---|
48 void hk_message_in(const char *bjid, const char *resname, | 48 void hk_message_in(const char *bjid, const char *resname, |
49 time_t timestamp, const char *msg, LmMessageSubType type, | 49 time_t timestamp, const char *msg, LmMessageSubType type, |
50 guint encrypted, gboolean carbon); | 50 guint encrypted, gboolean carbon); |
51 void hk_message_out(const char *bjid, const char *nickname, | 51 void hk_message_out(const char *bjid, const char *nickname, |
52 time_t timestamp, const char *msg, | 52 time_t timestamp, const char *msg, |
53 guint encrypted, gpointer xep184); | 53 guint encrypted, gboolean carbon, gpointer xep184); |
54 void hk_statuschange(const char *bjid, const char *resname, gchar prio, | 54 void hk_statuschange(const char *bjid, const char *resname, gchar prio, |
55 time_t timestamp, enum imstatus status, | 55 time_t timestamp, enum imstatus status, |
56 char const *status_msg); | 56 char const *status_msg); |
57 void hk_mystatuschange(time_t timestamp, | 57 void hk_mystatuschange(time_t timestamp, |
58 enum imstatus old_status, enum imstatus new_status, | 58 enum imstatus old_status, enum imstatus new_status, |