Rewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients;
Global player-kicking function (cServer, cRoot); More char * -> AString conversion git-svn-id: http://mc-server.googlecode.com/svn/trunk@221 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -146,3 +146,16 @@ int NoCaseCompare(const AString & s1, const AString & s2)
|
||||
|
||||
|
||||
|
||||
void ReplaceString(AString & iHayStack, const AString & iNeedle, const AString & iReplaceWith)
|
||||
{
|
||||
size_t pos1 = iHayStack.find(iNeedle);
|
||||
while (pos1 != AString::npos)
|
||||
{
|
||||
iHayStack.replace( pos1, iNeedle.size(), iReplaceWith);
|
||||
pos1 = iHayStack.find(iNeedle, pos1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user