Switch the IM and teleport callbacks of right-clicked inventory calling cards to LLAvatarActions
This is partially in attempt to reduce possible suspects for Issue 936: Talking to users with the lastname Resident sometimes creates logs without the delimiting space stripped out
This commit is contained in:
@@ -4584,8 +4584,7 @@ void LLCallingCardBridge::performAction(LLInventoryModel* model, std::string act
|
||||
if (item && (item->getCreatorUUID() != gAgent.getID()) &&
|
||||
(!item->getCreatorUUID().isNull()))
|
||||
{
|
||||
gIMMgr->setFloaterOpen(TRUE);
|
||||
gIMMgr->addSession(item->getName(), IM_NOTHING_SPECIAL, item->getCreatorUUID());
|
||||
LLAvatarActions::startIM(item->getCreatorUUID());
|
||||
}
|
||||
}
|
||||
else if ("lure" == action)
|
||||
@@ -4594,7 +4593,7 @@ void LLCallingCardBridge::performAction(LLInventoryModel* model, std::string act
|
||||
if (item && (item->getCreatorUUID() != gAgent.getID()) &&
|
||||
(!item->getCreatorUUID().isNull()))
|
||||
{
|
||||
handle_lure(item->getCreatorUUID());
|
||||
LLAvatarActions::offerTeleport(item->getCreatorUUID());
|
||||
}
|
||||
}
|
||||
else LLItemBridge::performAction(model, action);
|
||||
|
||||
Reference in New Issue
Block a user