about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-18 11:43:30 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-18 11:43:30 +0200
commitf7474cd72c1dbfcc8d4c3d6060c60a1062364dc2 (patch)
tree4e13904e84555fec246625c6962f568f95ed2fca /src/event
parent5c6f5ba0f7d5df942d286a6eae57bd4f1f2e7867 (diff)
downloadprofani-tty-f7474cd72c1dbfcc8d4c3d6060c60a1062364dc2.tar.gz
sv_ev_room_message: check if message->id is not NULL
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 6afde171..14da016a 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -296,7 +296,7 @@ sv_ev_room_message(ProfMessage *message)
     char *mynick = muc_nick(mucwin->roomjid);
 
     // messages from ourselves
-    if (g_strcmp0(mynick, message->jid->resourcepart) == 0) {
+    if (g_strcmp0(mynick, message->jid->resourcepart) == 0 && message->id != NULL) {
         // test if message was sent from this client
         // we check the </origin-id> for this we calculate a hash into it so we can detect
         // whether this client sent it. See connection_create_stanza_id()