diff options
Diffstat (limited to 'linden/indra/newview/llfloatergroupinfo.cpp')
-rw-r--r-- | linden/indra/newview/llfloatergroupinfo.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloatergroupinfo.cpp b/linden/indra/newview/llfloatergroupinfo.cpp index 1c303b9..c657988 100644 --- a/linden/indra/newview/llfloatergroupinfo.cpp +++ b/linden/indra/newview/llfloatergroupinfo.cpp | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | #include "llagent.h" | 38 | #include "llagent.h" |
39 | #include "llcommandhandler.h" | 39 | #include "llcommandhandler.h" |
40 | #include "llcommandhandler.h" | 40 | #include "llfloaterchatterbox.h" |
41 | #include "llpanelgroup.h" | 41 | #include "llpanelgroup.h" |
42 | #include "llviewermessage.h" // for inventory_offer_callback | 42 | #include "llviewermessage.h" // for inventory_offer_callback |
43 | //#include "llviewerwindow.h" | 43 | //#include "llviewerwindow.h" |
@@ -59,11 +59,35 @@ public: | |||
59 | LLGroupHandler() : LLCommandHandler("group", false) { } | 59 | LLGroupHandler() : LLCommandHandler("group", false) { } |
60 | bool handle(const LLSD& tokens, const LLSD& queryMap) | 60 | bool handle(const LLSD& tokens, const LLSD& queryMap) |
61 | { | 61 | { |
62 | if (tokens.size() < 1) | ||
63 | { | ||
64 | return false; | ||
65 | } | ||
66 | |||
67 | if (tokens[0].asString() == "create") | ||
68 | { | ||
69 | LLFloaterGroupInfo::showCreateGroup(NULL); | ||
70 | return true; | ||
71 | } | ||
72 | |||
62 | if (tokens.size() < 2) | 73 | if (tokens.size() < 2) |
63 | { | 74 | { |
64 | return false; | 75 | return false; |
65 | } | 76 | } |
66 | 77 | ||
78 | if (tokens[0].asString() == "list") | ||
79 | { | ||
80 | if (tokens[1].asString() == "show") | ||
81 | { | ||
82 | // CP_TODO: get the value we pass in via the XUI name | ||
83 | // of the tab instead of using a literal like this | ||
84 | LLFloaterMyFriends::showInstance( 1 ); | ||
85 | |||
86 | return true; | ||
87 | } | ||
88 | return false; | ||
89 | } | ||
90 | |||
67 | LLUUID group_id; | 91 | LLUUID group_id; |
68 | if (!group_id.set(tokens[0], FALSE)) | 92 | if (!group_id.set(tokens[0], FALSE)) |
69 | { | 93 | { |