diff options
-rw-r--r-- | src/event/server_events.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index 152c0ac6..c1fe381c 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -373,8 +373,10 @@ sv_ev_room_message(ProfMessage* message) if (prefs_do_room_notify(is_current, mucwin->roomjid, mynick, message->from_jid->resourcepart, message->plain, mention, triggers != NULL)) { Jid* jidp = jid_create(mucwin->roomjid); - notify_room_message(message->from_jid->resourcepart, jidp->localpart, num, message->plain); - jid_destroy(jidp); + if (jidp) { + notify_room_message(message->from_jid->resourcepart, jidp->localpart, num, message->plain); + jid_destroy(jidp); + } } if (triggers) { |