diff options
author | McCabe Maxsted | 2010-04-06 22:41:42 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-06 22:48:34 -0700 |
commit | e7aaa802d82bd4a13bddb82866f61d27ef43a001 (patch) | |
tree | 3b052fcee5e63f77fe0e5a953de2c97a01b071af /linden/indra/newview/llviewermessage.cpp | |
parent | Ported IM autoresponse options from Emerald, added them to a new window in Pr... (diff) | |
download | meta-impy-e7aaa802d82bd4a13bddb82866f61d27ef43a001.zip meta-impy-e7aaa802d82bd4a13bddb82866f61d27ef43a001.tar.gz meta-impy-e7aaa802d82bd4a13bddb82866f61d27ef43a001.tar.bz2 meta-impy-e7aaa802d82bd4a13bddb82866f61d27ef43a001.tar.xz |
Use '>>' for objects without names rather than 'no name'
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index ba01583..a2bb5f1 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -2274,6 +2274,22 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) | |||
2274 | chat.mFromID = from_id ^ gAgent.getSessionID(); | 2274 | chat.mFromID = from_id ^ gAgent.getSessionID(); |
2275 | } | 2275 | } |
2276 | 2276 | ||
2277 | std::string tempname = name; | ||
2278 | |||
2279 | size_t found = tempname.find(" "); | ||
2280 | while(found != std::string::npos) | ||
2281 | { | ||
2282 | tempname.replace(found, 1, ""); | ||
2283 | found = tempname.find(" "); | ||
2284 | } | ||
2285 | |||
2286 | if (tempname.length() < 1) | ||
2287 | { | ||
2288 | name = ">>"; | ||
2289 | chat.mFromName = name; | ||
2290 | |||
2291 | } | ||
2292 | |||
2277 | std::ostringstream link; | 2293 | std::ostringstream link; |
2278 | link << "secondlife:///app/objectim/" << session_id | 2294 | link << "secondlife:///app/objectim/" << session_id |
2279 | << LLURI::mapToQueryString(query_string); | 2295 | << LLURI::mapToQueryString(query_string); |
@@ -2671,7 +2687,7 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data) | |||
2671 | 2687 | ||
2672 | if (tempname.length() < 1) | 2688 | if (tempname.length() < 1) |
2673 | { | 2689 | { |
2674 | from_name = "no name"; | 2690 | from_name = ">>"; |
2675 | chat.mFromName = from_name; | 2691 | chat.mFromName = from_name; |
2676 | } | 2692 | } |
2677 | 2693 | ||