Mercurial > ~mikael > mcabber > hg
diff mcabber/src/commands.c @ 484:00e2d3821a5b
Display PRIV for private messages in a room when using /say_to
Private conf. messages are not logged.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 06 Oct 2005 21:51:34 +0200 |
parents | 882e1acae422 |
children | 2a6a8ebb813b |
line wrap: on
line diff
--- a/mcabber/src/commands.c Wed Oct 05 21:46:13 2005 +0200 +++ b/mcabber/src/commands.c Thu Oct 06 21:51:34 2005 +0200 @@ -252,7 +252,7 @@ if (buddy_gettype(BUDDATA(current_buddy)) != ROSTER_TYPE_ROOM) { // local part (UI, logging, etc.) - hk_message_out(jid, 0, msg); + hk_message_out(jid, NULL, 0, msg); } // Network part @@ -693,8 +693,15 @@ // Jump to window, create one if needed scr_RosterJumpJid(bare_jid); + // Check if we're sending a message to a conference room + // If not, we must make sure p is NULL, for hk_message_out() + if (p) { + if (roster_find(bare_jid, jidsearch, ROSTER_TYPE_ROOM)) p++; + else p = NULL; + } + // local part (UI, logging, etc.) - hk_message_out(bare_jid, 0, msg); + hk_message_out(bare_jid, p, 0, msg); // Network part jb_send_msg(jid, msg, ROSTER_TYPE_USER, NULL);