comparison mcabber/src/hooks.c @ 887:df4bb1535ef8

Fix beep_on_message in rooms
author Mikael Berthe <mikael@lilotux.net>
date Mon, 29 May 2006 18:53:01 +0200
parents 722f186f51c3
children 303408ef5e5d
comparison
equal deleted inserted replaced
886:e58ae191a25c 887:df4bb1535ef8
141 scr_LogPrint(LPRINT_NORMAL, "Message received from %s <%s/%s>", 141 scr_LogPrint(LPRINT_NORMAL, "Message received from %s <%s/%s>",
142 name, jid, (resname ? resname : "")); 142 name, jid, (resname ? resname : ""));
143 } 143 }
144 144
145 // Beep, if enabled 145 // Beep, if enabled
146 if (settings_opt_get_int("beep_on_message")) 146 if ((!is_groupchat) && !(message_flags & HBB_PREFIX_ERR) &&
147 settings_opt_get_int("beep_on_message")) {
147 scr_Beep(); 148 scr_Beep();
149 }
148 150
149 // We need to rebuild the list if the sender is unknown or 151 // We need to rebuild the list if the sender is unknown or
150 // if the sender is offline/invisible and hide_offline_buddies is set 152 // if the sender is offline/invisible and hide_offline_buddies is set
151 if (new_guy || 153 if (new_guy ||
152 (buddy_getstatus(roster_usr->data, NULL) == offline && 154 (buddy_getstatus(roster_usr->data, NULL) == offline &&