Oopsies, misplaced busy response block

This commit is contained in:
Lirusaito
2013-07-18 08:35:10 -04:00
parent a5b8c173ac
commit 9db44e67e8

View File

@@ -2228,6 +2228,11 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)
else if (offline == IM_ONLINE && !is_linden && is_busy && !is_muted && name != SYSTEM_FROM && gRlvHandler.canReceiveIM(from_id))
// [/RLVa:KB]
{
if (!gIMMgr->hasSession(session_id) || gSavedPerAccountSettings.getBOOL("AscentInstantMessageResponseRepeat"))
{
busy_message(msg, from_id);
}
// now store incoming IM in chat history
buffer = separator_string + message.substr(message_offset);
@@ -2248,8 +2253,6 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)
// pretend this is chat generated by self, so it does not show up on screen
chat.mText = std::string("IM: ") + name + separator_string + message.substr(message_offset);
LLFloaterChat::addChat(chat, true, true);
if (!gIMMgr->hasSession(session_id) || gSavedPerAccountSettings.getBOOL("AscentInstantMessageResponseRepeat"))
busy_message(msg, from_id);
}
// else if (to_id.notNull() && offline == IM_ONLINE && !is_linden && (is_autorespond || is_autorespond_nonfriends || is_autorespond_muted) && name != SYSTEM_FROM)
// [RLVa:LF] - Same as above: Checked: 2010-11-30 (RLVa-1.3.0c) | Modified: RLVa-1.3.0c