diff options
author | James Cook <james@lindenlab.com> | 2010-03-30 09:36:43 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-03-30 09:36:43 -0700 |
commit | 0c89242b4ca4cd99baee41f4b1ca8f1817f6012e (patch) | |
tree | b830304f58c60532d5c53e24ceea0e2fa797cf42 /indra/newview | |
parent | f96376cba49517d0aadd10ac95244065c454d4d5 (diff) |
Demo code - name changes work on agni again
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewerdisplayname.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llviewerdisplayname.cpp b/indra/newview/llviewerdisplayname.cpp index 587d745e51..62fbf85985 100644 --- a/indra/newview/llviewerdisplayname.cpp +++ b/indra/newview/llviewerdisplayname.cpp @@ -69,12 +69,16 @@ void LLViewerDisplayName::set(const std::string& display_name, const set_name_sl std::string cap_url = region->getCapability("SetDisplayName"); if (cap_url.empty()) { - // this server does not support display names, report error - slot(false, "unsupported", LLSD()); + // JAMESDEBUG HACK for demos, fall back to prototype name service + LLAvatarNameCache::setDisplayName(gAgent.getID(), display_name, slot); return; + + // this server does not support display names, report error + //slot(false, "unsupported", LLSD()); + //return; } - llinfos << "JAMESDEBUG POST to " << cap_url << llendl; + llinfos << "Set name POST to " << cap_url << llendl; // Record our caller for when the server sends back a reply sSetDisplayNameSignal.connect(slot); |