/open for opening avatar profiles by id~

This commit is contained in:
Lirusaito
2014-07-09 03:18:08 -04:00
parent 1e9b79e2c1
commit 759ee62e7c

View File

@@ -40,6 +40,7 @@
#include "llagent.h"
#include "llagentcamera.h"
#include "llagentui.h"
#include "llavataractions.h"
#include "llviewerregion.h"
#include "llworld.h"
#include "lleventtimer.h"
@@ -436,7 +437,14 @@ bool cmd_line_chat(std::string revised_text, EChatType type)
{
if (revised_text.length() > command.length() + 1)
{
LLUrlAction::clickAction(revised_text.substr(command.length()+1));
const std::string sub(revised_text.substr(command.length()+1));
LLUUID id;
if (id.parseUUID(sub, &id))
{
LLAvatarActions::showProfile(id);
return false;
}
LLUrlAction::clickAction(sub);
}
return false;
}