comparison mcabber/mcabber/hooks.c @ 1808:7a1c40549291

Fix attention sign for MUC private messages
author Mikael Berthe <mikael@lilotux.net>
date Sun, 21 Mar 2010 15:46:50 +0100
parents 48e47198a9db
children e6d355e50d7a
comparison
equal deleted inserted replaced
1807:c5d057237d70 1808:7a1c40549291
335 335
336 // Set urgent (a.k.a. "attention") flag 336 // Set urgent (a.k.a. "attention") flag
337 { 337 {
338 guint uip; 338 guint uip;
339 if (is_groupchat) { 339 if (is_groupchat) {
340 if (mucprivmsg) uip = ROSTER_UI_PRIO_MUC_PRIV_MESSAGE; 340 if (attention) uip = ROSTER_UI_PRIO_MUC_HL_MESSAGE;
341 else if (attention) uip = ROSTER_UI_PRIO_MUC_HL_MESSAGE;
342 else uip = ROSTER_UI_PRIO_MUC_MESSAGE; 341 else uip = ROSTER_UI_PRIO_MUC_MESSAGE;
343 } else { 342 } else {
344 if (attention) uip = ROSTER_UI_PRIO_ATTENTION_MESSAGE; 343 if (mucprivmsg) uip = ROSTER_UI_PRIO_MUC_PRIV_MESSAGE;
345 else uip = ROSTER_UI_PRIO_PRIVATE_MESSAGE; 344 else if (attention) uip = ROSTER_UI_PRIO_ATTENTION_MESSAGE;
345 else uip = ROSTER_UI_PRIO_PRIVATE_MESSAGE;
346 } 346 }
347 scr_setattentionflag_if_needed(bjid, FALSE, uip, prio_max); 347 scr_setattentionflag_if_needed(bjid, FALSE, uip, prio_max);
348 } 348 }
349 349
350 // We don't log the modified message, but the original one 350 // We don't log the modified message, but the original one