about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-05-12 13:38:40 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-05-12 13:38:40 +0200
commit34e261ced523400ba5d38c79a1ebc4c3fce930b0 (patch)
tree5394b510e36c7140f438ed89ba0cf83d1929a3a7 /src/command
parent722d07adf68438559aeaec1ed1ce22b12a21a187 (diff)
downloadprofani-tty-34e261ced523400ba5d38c79a1ebc4c3fce930b0.tar.gz
Print message about new direct message
So users don't get surprised if they don't know the barejid of the nick.
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 6c3f3708..1ca6878b 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -2158,7 +2158,11 @@ cmd_msg(ProfWin* window, const char* const command, gchar** args)
             // in case of non-anon muc send regular chatmessage
             if (muc_anonymity_type(mucwin->roomjid) == MUC_ANONYMITY_TYPE_NONANONYMOUS) {
                 Jid* jidp = jid_create(occupant->jid);
+
                 _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);
             } else {
                 // otherwise send mucpm