aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewermessage.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index cecef95..33d3d51 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -2579,18 +2579,16 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
2579 verb = " " + LLTrans::getString("whisper") + " "; 2579 verb = " " + LLTrans::getString("whisper") + " ";
2580 break; 2580 break;
2581 case CHAT_TYPE_OWNER: 2581 case CHAT_TYPE_OWNER:
2582// [RLVa:KB] - Checked: 2009-08-05 (RLVa-1.0.1e) | Modified: RLVa-1.0.1e 2582// [RLVa:KB] - Checked: 2009-08-28 (RLVa-1.0.2a) | Modified: RLVa-1.0.2a
2583 if ( (rlv_handler_t::isEnabled()) && (mesg.length() > 3) && (RLV_CMD_PREFIX == mesg[0]) ) 2583 if ( (rlv_handler_t::isEnabled()) && (mesg.length() > 3) && (RLV_CMD_PREFIX == mesg[0]) && (CHAT_TYPE_OWNER == chat.mChatType) )
2584 { 2584 {
2585 mesg.erase(0, 1); 2585 mesg.erase(0, 1);
2586 LLStringUtil::toLower(mesg); 2586 LLStringUtil::toLower(mesg);
2587 2587
2588 std::string strExecuted, strFailed, strRetained, *pstr; 2588 std::string strExecuted, strFailed, strRetained, *pstr;
2589 2589
2590 typedef boost::tokenizer<boost::char_separator<char> > tokenizer; 2590 boost_tokenizer tokens(mesg, boost::char_separator<char>(",", "", boost::drop_empty_tokens));
2591 boost::char_separator<char> sep(",", "", boost::drop_empty_tokens); 2591 for (boost_tokenizer::const_iterator itToken = tokens.begin(); itToken != tokens.end(); ++itToken)
2592 tokenizer tokens(mesg, sep);
2593 for (tokenizer::iterator itToken = tokens.begin(); itToken != tokens.end(); ++itToken)
2594 { 2592 {
2595 if (LLStartUp::getStartupState() == STATE_STARTED) 2593 if (LLStartUp::getStartupState() == STATE_STARTED)
2596 { 2594 {