about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-04-06 18:37:39 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-04-06 19:15:02 +0200
commit3524a53c7c61783f021111755a5617b56bfaa234 (patch)
treeef21198b90e30f2db5b073fab8cff2b728f54e27 /src/event
parent5862e5b159bae4fdf75388067a0a9ae6869a255e (diff)
downloadprofani-tty-3524a53c7c61783f021111755a5617b56bfaa234.tar.gz
Add type field to ProfMessage
The mucuser boolean is not now needed anymore.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/server_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index d1223082..e75db88e 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -445,7 +445,7 @@ sv_ev_outgoing_carbon(ProfMessage *message)
     chat_state_active(chatwin->state);
 
     if (message->plain) {
-        if (message->mucuser) {
+        if (message->type == PROF_MSG_TYPE_MUCPM) {
             // MUC PM, should have resource (nick) in filename
             chat_log_msg_out(message->jid->barejid, message->plain, message->jid->resourcepart);
         } else {