From 21e7dc45b36105eb2f24c4d69c595861bfe0d9ec Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 7 Jun 2010 01:51:55 -0700 Subject: Added a little easter egg for Jacek --- linden/indra/newview/llgesturemgr.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 @@ #include "llagent.h" #include "llchatbar.h" #include "lldelayedgestureerror.h" +#include "llfloaterchat.h" #include "llinventorymodel.h" #include "llnotify.h" #include "llviewermessage.h" @@ -560,6 +561,18 @@ BOOL LLGestureManager::triggerAndReviseString(const std::string &utf8str, std::s found_gestures = TRUE; } } + else if (LLStringUtil::compareInsensitive("/icanhascookie", cur_token) == 0) + { + LLChat chat; + chat.mText = "I made you a cookie but I eated it"; + chat.mSourceType = CHAT_SOURCE_SYSTEM; + LLFloaterChat::addChat(chat); + if (revised_string) + { + revised_string->assign(LLStringUtil::null); + } + return TRUE; + } } if(!gesture) -- cgit v1.1