Fix OnClientConnect rejectmsg handling, improve doc (bug 3690, r=dvander)

This commit is contained in:
Fyren
2009-04-13 16:39:53 -07:00
parent 2c190f502f
commit 74a25097b2
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -421,7 +421,7 @@ bool PlayerManager::OnClientConnect(edict_t *pEntity, const char *pszName, const
pPlayer->Initialize(pszName, pszAddress, pEntity);
m_clconnect->PushCell(client);
m_clconnect->PushStringEx(reject, maxrejectlen, SM_PARAM_STRING_UTF8, SM_PARAM_COPYBACK);
m_clconnect->PushStringEx(reject, maxrejectlen, SM_PARAM_STRING_UTF8 | SM_PARAM_STRING_COPY, SM_PARAM_COPYBACK);
m_clconnect->PushCell(maxrejectlen);
m_clconnect->Execute(&res);