Mercurial > hg
changeset 1210:7c8672bbede5
Use beep_on_message's value for highlighted MUC room messages
If 'beep_on_message' is set, mcabber will ring the bell when receiving a
private message and for highlighted messages in a MUC room.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 29 Apr 2007 22:16:27 +0200 |
parents | 47579e8c73d0 |
children | 56f7f504b4ba |
files | mcabber/src/hooks.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/hooks.c Sun Apr 29 11:53:33 2007 +0200 +++ b/mcabber/src/hooks.c Sun Apr 29 22:16:27 2007 +0200 @@ -197,10 +197,13 @@ name, bjid, (resname ? resname : "")); } - // Beep, if enabled - if ((!is_groupchat) && !(message_flags & HBB_PREFIX_ERR) && - settings_opt_get_int("beep_on_message")) { - scr_Beep(); + // Beep, if enabled: + // - if it's a private message + // - if it's a public message and it's highlighted + if (settings_opt_get_int("beep_on_message")) { + if ((!is_groupchat && !(message_flags & HBB_PREFIX_ERR)) || + (is_groupchat && (message_flags & HBB_PREFIX_HLIGHT))) + scr_Beep(); } // We need to update the roster if the sender is unknown or