diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 584a29b3cc..d47f385eb0 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -2782,10 +2782,13 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) // Only send the busy reponse if either the sender is not // muted OR the sender is muted and we explicitely want // to inform him about that fact. - else if ( (offline == IM_ONLINE && - ((is_do_not_disturb && (!is_muted || (is_muted && !is_autorespond_muted))) || - (is_autorespond && !is_muted) || (is_autorespond_nonfriends && !is_friend && !is_muted) || (FSSendAwayAvatarResponse && is_afk && !is_muted)) && name != SYSTEM_FROM) && - (RlvActions::canReceiveIM(from_id)) ) + else if (offline == IM_ONLINE + && ((is_do_not_disturb && (!is_muted || (is_muted && !is_autorespond_muted))) || + (is_autorespond && !is_muted) || (is_autorespond_nonfriends && !is_friend && !is_muted) || + (FSSendAwayAvatarResponse && is_afk && !is_muted)) + && from_id.notNull() + && to_id.notNull() + && RlvActions::canReceiveIM(from_id)) // [/RLVa:KB] { // Log autoresponse notification after initial message