summaryrefslogtreecommitdiff
path: root/indra/llui/llurlaction.cpp
diff options
context:
space:
mode:
authorMnikolenko ProductEngine <mnikolenko@productengine.com>2013-03-05 15:40:31 +0200
committerMnikolenko ProductEngine <mnikolenko@productengine.com>2013-03-05 15:40:31 +0200
commit477920b13834c977659d11d91d8f2d52e05f54b8 (patch)
tree820b5723cb41b0103b00f61d5154ee62e90415a5 /indra/llui/llurlaction.cpp
parent67741ae9786a88bb00f3419ad6a8ac8533481acb (diff)
CHUI-809 FIXED "Start IM" menu item is added
Diffstat (limited to 'indra/llui/llurlaction.cpp')
-rw-r--r--indra/llui/llurlaction.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llui/llurlaction.cpp b/indra/llui/llurlaction.cpp
index fd9b3d9a6d..fd872eca4b 100644
--- a/indra/llui/llurlaction.cpp
+++ b/indra/llui/llurlaction.cpp
@@ -157,3 +157,17 @@ void LLUrlAction::showProfile(std::string url)
}
}
}
+
+void LLUrlAction::sendIM(std::string url)
+{
+ LLURI uri(url);
+ LLSD path_array = uri.pathArray();
+ if (path_array.size() == 4)
+ {
+ std::string id_str = path_array.get(2).asString();
+ if (LLUUID::validate(id_str))
+ {
+ executeSLURL("secondlife:///app/agent/" + id_str + "/im");
+ }
+ }
+}