comparison mcabber/src/screen.c @ 654:d7fe7b88e4fc

MUC: Set the new_message flag when joining a room
author Mikael Berthe <mikael@lilotux.net>
date Sat, 07 Jan 2006 12:17:49 +0100
parents b243d3b3ff1b
children 056dc9e65c25
comparison
equal deleted inserted replaced
653:d5db5be78eb0 654:d7fe7b88e4fc
1239 inline int scr_get_multimode() 1239 inline int scr_get_multimode()
1240 { 1240 {
1241 return multimode; 1241 return multimode;
1242 } 1242 }
1243 1243
1244 // scr_setmsgflag_if_needed(jid)
1245 // Set the message flag unless we're already in the jid buffer window
1246 void scr_setmsgflag_if_needed(const char *jid)
1247 {
1248 if (!chatmode || !current_buddy ||
1249 strcmp(jid, buddy_getjid(BUDDATA(current_buddy))))
1250 roster_msg_setflag(jid, TRUE);
1251 }
1252
1244 // scr_set_multimode() 1253 // scr_set_multimode()
1245 // Public function to (un)set multimode... 1254 // Public function to (un)set multimode...
1246 // Convention: 1255 // Convention:
1247 // 0 = disabled / 1 = multimode / 2 = multimode verbatim (commands disabled) 1256 // 0 = disabled / 1 = multimode / 2 = multimode verbatim (commands disabled)
1248 inline void scr_set_multimode(int enable) 1257 inline void scr_set_multimode(int enable)