diff options
-rw-r--r-- | linden/indra/newview/llgesturemgr.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/linden/indra/newview/llgesturemgr.cpp b/linden/indra/newview/llgesturemgr.cpp index 2135ea5..a341154 100644 --- a/linden/indra/newview/llgesturemgr.cpp +++ b/linden/indra/newview/llgesturemgr.cpp | |||
@@ -52,6 +52,7 @@ | |||
52 | #include "llagent.h" | 52 | #include "llagent.h" |
53 | #include "llchatbar.h" | 53 | #include "llchatbar.h" |
54 | #include "lldelayedgestureerror.h" | 54 | #include "lldelayedgestureerror.h" |
55 | #include "llfloaterchat.h" | ||
55 | #include "llinventorymodel.h" | 56 | #include "llinventorymodel.h" |
56 | #include "llnotify.h" | 57 | #include "llnotify.h" |
57 | #include "llviewermessage.h" | 58 | #include "llviewermessage.h" |
@@ -560,6 +561,18 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s | |||
560 | found_gestures = TRUE; | 561 | found_gestures = TRUE; |
561 | } | 562 | } |
562 | } | 563 | } |
564 | else if (LLStringUtil::compareInsensitive("/icanhascookie", cur_token) == 0) | ||
565 | { | ||
566 | LLChat chat; | ||
567 | chat.mText = "I made you a cookie but I eated it"; | ||
568 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | ||
569 | LLFloaterChat::addChat(chat); | ||
570 | if (revised_string) | ||
571 | { | ||
572 | revised_string->assign(LLStringUtil::null); | ||
573 | } | ||
574 | return TRUE; | ||
575 | } | ||
563 | } | 576 | } |
564 | 577 | ||
565 | if(!gesture) | 578 | if(!gesture) |