comparison mcabber/src/hooks.c @ 675:ae7016aae014

New "beep_on_message" option
author Mikael Berthe <mikael@lilotux.net>
date Wed, 25 Jan 2006 22:00:06 +0100
parents 29a0637c176f
children ee03b56b93ee
comparison
equal deleted inserted replaced
674:dbdf72de7500 675:ae7016aae014
118 // External command 118 // External command
119 // - We do not call hk_ext_cmd() for history lines in MUC 119 // - We do not call hk_ext_cmd() for history lines in MUC
120 // - We do call hk_ext_cmd() for private messages in a room 120 // - We do call hk_ext_cmd() for private messages in a room
121 if ((is_groupchat && !timestamp) || !is_groupchat) 121 if ((is_groupchat && !timestamp) || !is_groupchat)
122 hk_ext_cmd(jid, (is_groupchat ? 'G' : 'M'), 'R', wmsg); 122 hk_ext_cmd(jid, (is_groupchat ? 'G' : 'M'), 'R', wmsg);
123
124 // Beep, if enabled
125 if (settings_opt_get_int("beep_on_message"))
126 scr_Beep();
123 127
124 // We need to rebuild the list if the sender is unknown or 128 // We need to rebuild the list if the sender is unknown or
125 // if the sender is offline/invisible and hide_offline_buddies is set 129 // if the sender is offline/invisible and hide_offline_buddies is set
126 if (new_guy || 130 if (new_guy ||
127 (buddy_getstatus(roster_usr->data, NULL) == offline && 131 (buddy_getstatus(roster_usr->data, NULL) == offline &&