Skip to content
Snippets Groups Projects
Commit 0c89242b authored by James Cook's avatar James Cook
Browse files

Demo code - name changes work on agni again

parent f96376cb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment