From 89a510de10c48ebcf82b98a962e4bf66477dcc93 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 4 Sep 2009 01:56:20 -0500 Subject: Applied Kitty Barnett's RLVa 1.0.1h (Restrained Life) patch. Made a few non-functional changes to help it apply. --- linden/indra/newview/llimview.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'linden/indra/newview/llimview.cpp') diff --git a/linden/indra/newview/llimview.cpp b/linden/indra/newview/llimview.cpp index 1072b21..20de43e 100644 --- a/linden/indra/newview/llimview.cpp +++ b/linden/indra/newview/llimview.cpp @@ -1550,6 +1550,19 @@ public: { return; } +// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) + // TODO-RLVa: duplicate from process_improved_im()? + if (gRlvHandler.hasBehaviour(RLV_BHVR_RECVIM)) + { + if (gAgent.isInGroup(session_id)) + { + if (!gRlvHandler.isException(RLV_BHVR_RECVIM, session_id)) + return; + } + else if (!gRlvHandler.isException(RLV_BHVR_RECVIM, from_id)) + message = message.substr(0, message_offset) + rlv_handler_t::cstrBlockedRecvIM; + } +// [/RLVa:KB] // standard message, not from system std::string saved; -- cgit v1.1