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.
--- 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