summaryrefslogtreecommitdiff
path: root/indra/newview/llnotificationtiphandler.cpp
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-06-21 13:45:12 +0100
committerAimee Linden <aimee@lindenlab.com>2010-06-21 13:45:12 +0100
commita069e0d3db0e0771e54768a702fa18e57415992e (patch)
tree0216de28c44dd31278fcd47c09b8cc54c2891c7b /indra/newview/llnotificationtiphandler.cpp
parentc0129e4b11455a05a94300e1649cf3edaaf824aa (diff)
parentb12c98e48ce44df907c7477e1c21061778459496 (diff)
Merge
Diffstat (limited to 'indra/newview/llnotificationtiphandler.cpp')
-rw-r--r--indra/newview/llnotificationtiphandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llnotificationtiphandler.cpp b/indra/newview/llnotificationtiphandler.cpp
index df6f04b6ea..a06a5770a2 100644
--- a/indra/newview/llnotificationtiphandler.cpp
+++ b/indra/newview/llnotificationtiphandler.cpp
@@ -106,11 +106,16 @@ bool LLTipHandler::processNotification(const LLSD& notify)
}
}
+ std::string session_name = notification->getPayload()["SESSION_NAME"];
const std::string name = notification->getSubstitutions()["NAME"];
+ if (session_name.empty())
+ {
+ session_name = name;
+ }
LLUUID from_id = notification->getPayload()["from_id"];
if (LLHandlerUtil::canLogToIM(notification))
{
- LLHandlerUtil::logToIM(IM_NOTHING_SPECIAL, name, name,
+ LLHandlerUtil::logToIM(IM_NOTHING_SPECIAL, session_name, name,
notification->getMessage(), from_id, from_id);
}