Update RLVa to 1.4.0-compatible
This commit is contained in:
@@ -1656,17 +1656,18 @@ 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))
|
||||
// [RLVa:KB] - Checked: 2010-11-30 (RLVa-1.3.0c) | Modified: RLVa-1.3.0c
|
||||
if ( (gRlvHandler.hasBehaviour(RLV_BHVR_RECVIM)) || (gRlvHandler.hasBehaviour(RLV_BHVR_RECVIMFROM)) )
|
||||
{
|
||||
if (gAgent.isInGroup(session_id))
|
||||
if (gAgent.isInGroup(session_id)) // Group chat: don't accept the invite if not an exception
|
||||
{
|
||||
if (!gRlvHandler.isException(RLV_BHVR_RECVIM, session_id))
|
||||
if (!gRlvHandler.canReceiveIM(session_id))
|
||||
return;
|
||||
}
|
||||
else if (!gRlvHandler.isException(RLV_BHVR_RECVIM, from_id))
|
||||
message = message.substr(0, message_offset) + RlvStrings::getString(RLV_STRING_BLOCKED_RECVIM);
|
||||
else if (!gRlvHandler.canReceiveIM(from_id)) // Conference chat: don't block; censor if not an exception
|
||||
{
|
||||
message = RlvStrings::getString(RLV_STRING_BLOCKED_RECVIM);
|
||||
}
|
||||
}
|
||||
// [/RLVa:KB]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user