[RLVa] b15fdd026026 ported
- internal : reviewed @recvim and @sendim for CHUI (SL-3.5) Singu changes: - Updated busy to be referred to as do_not_disturb in llviewermessage.cpp - Don't send autoresponse if we can't send an IM by rlva - Updated checks for from name being system to be to_id and from_id null checks. - Minor compile fix in rlvui.cpp for last commit.
This commit is contained in:
@@ -23,6 +23,30 @@
|
||||
// RlvActions member functions
|
||||
//
|
||||
|
||||
// Checked: 2010-11-30 (RLVa-1.3.0)
|
||||
bool RlvActions::canReceiveIM(const LLUUID& idSender)
|
||||
{
|
||||
// User can receive an IM from "sender" (could be an agent or a group) if:
|
||||
// - not generally restricted from receiving IMs (or the sender is an exception)
|
||||
// - not specifically restricted from receiving an IM from the sender
|
||||
return
|
||||
(!rlv_handler_t::isEnabled()) ||
|
||||
( ( (!gRlvHandler.hasBehaviour(RLV_BHVR_RECVIM)) || (gRlvHandler.isException(RLV_BHVR_RECVIM, idSender)) ) &&
|
||||
( (!gRlvHandler.hasBehaviour(RLV_BHVR_RECVIMFROM)) || (!gRlvHandler.isException(RLV_BHVR_RECVIMFROM, idSender)) ) );
|
||||
}
|
||||
|
||||
// Checked: 2010-11-30 (RLVa-1.3.0)
|
||||
bool RlvActions::canSendIM(const LLUUID& idRecipient)
|
||||
{
|
||||
// User can send an IM to "recipient" (could be an agent or a group) if:
|
||||
// - not generally restricted from sending IMs (or the recipient is an exception)
|
||||
// - not specifically restricted from sending an IM to the recipient
|
||||
return
|
||||
(!rlv_handler_t::isEnabled()) ||
|
||||
( ( (!gRlvHandler.hasBehaviour(RLV_BHVR_SENDIM)) || (gRlvHandler.isException(RLV_BHVR_SENDIM, idRecipient)) ) &&
|
||||
( (!gRlvHandler.hasBehaviour(RLV_BHVR_SENDIMTO)) || (!gRlvHandler.isException(RLV_BHVR_SENDIMTO, idRecipient)) ) );
|
||||
}
|
||||
|
||||
// Checked: 2011-04-12 (RLVa-1.3.0)
|
||||
bool RlvActions::canStartIM(const LLUUID& idRecipient)
|
||||
{
|
||||
@@ -35,6 +59,12 @@ bool RlvActions::canStartIM(const LLUUID& idRecipient)
|
||||
( (!gRlvHandler.hasBehaviour(RLV_BHVR_STARTIMTO)) || (!gRlvHandler.isException(RLV_BHVR_STARTIMTO, idRecipient)) ) );
|
||||
}
|
||||
|
||||
// Checked: 2013-05-10 (RLVa-1.4.9)
|
||||
bool RlvActions::hasBehaviour(ERlvBehaviour eBhvr)
|
||||
{
|
||||
return gRlvHandler.hasBehaviour(eBhvr);
|
||||
}
|
||||
|
||||
// Checked: 2013-05-09 (RLVa-1.4.9)
|
||||
bool RlvActions::hasOpenP2PSession(const LLUUID& idAgent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user