Core/Scripts: kill one ugly char buffer

This commit is contained in:
ariel- authored and Aokromes committed 2017-01-07 07:23:35 +01:00
1 parent 31d606e1cf
commit 6586615d1f
1 file changed
+1 -3
+1 -3
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