Fix potential crash, thanks Rye and Testicular!

This commit is contained in:
Liru Færs
2020-02-09 18:28:10 -05:00
parent 0892d14933
commit 6e6fb44bdb
2 changed files with 2 additions and 3 deletions

View File

@@ -3372,8 +3372,7 @@ void send_do_not_disturb_message(LLMessageSystem* msg, const LLUUID& from_id, co
std::string my_name;
LLAgentUI::buildFullname(my_name);
std::string name;
msg->getStringFast(_PREHASH_MessageBlock, _PREHASH_FromAgentName, name);
name = LLCacheName::cleanFullName(name);
gCacheName->getFullName(from_id, name);
std::string response = gSavedPerAccountSettings.getString("BusyModeResponse");
pack_instant_message(
msg,