mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Print message about new direct message
So users don't get surprised if they don't know the barejid of the nick.
This commit is contained in:
parent
722d07adf6
commit
34e261ced5
@ -2158,7 +2158,11 @@ cmd_msg(ProfWin* window, const char* const command, gchar** args)
|
|||||||
// in case of non-anon muc send regular chatmessage
|
// in case of non-anon muc send regular chatmessage
|
||||||
if (muc_anonymity_type(mucwin->roomjid) == MUC_ANONYMITY_TYPE_NONANONYMOUS) {
|
if (muc_anonymity_type(mucwin->roomjid) == MUC_ANONYMITY_TYPE_NONANONYMOUS) {
|
||||||
Jid* jidp = jid_create(occupant->jid);
|
Jid* jidp = jid_create(occupant->jid);
|
||||||
|
|
||||||
_cmd_msg_chatwin(jidp->barejid, msg);
|
_cmd_msg_chatwin(jidp->barejid, msg);
|
||||||
|
win_println(window, THEME_DEFAULT, "-", "Starting direct message with occupant \"%s\" from room \"%s\" as \"%s\".", usr, mucwin->roomjid, jidp->barejid);
|
||||||
|
cons_show("Starting direct message with occupant \"%s\" from room \"%s\" as \"%s\".", usr, mucwin->roomjid, jidp->barejid);
|
||||||
|
|
||||||
jid_destroy(jidp);
|
jid_destroy(jidp);
|
||||||
} else {
|
} else {
|
||||||
// otherwise send mucpm
|
// otherwise send mucpm
|
||||||
|
Loading…
Reference in New Issue
Block a user