about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
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()