Core/Scripts: kill one ugly char buffer

This commit is contained in:
ariel-
2017-01-06 00:45:58 -03:00
committed by Aokromes
parent 31d606e1cf
commit 6586615d1f

View File

@@ -160,9 +160,7 @@ public:
if (!*args)
return false;
char buff[2048];
sprintf(buff, handler->GetTrinityString(LANG_SYSTEMMESSAGE), args);
sWorld->SendServerMessage(SERVER_MSG_STRING, buff);
sWorld->SendServerMessage(SERVER_MSG_STRING, Trinity::StringFormat(handler->GetTrinityString(LANG_SYSTEMMESSAGE), args).c_str());
return true;
}
// announce to logged in GMs