summaryrefslogtreecommitdiffstats
path: root/source/cServer.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-09 14:42:28 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-09 14:42:28 +0100
commitf43b65cf53274d1bbb43e2041ce72ff9eb68a7c8 (patch)
tree6799433ae65c4d4331bbfd6bcabe5bac38f6376c /source/cServer.cpp
parentUsing the _DEBUG macro for *nix debug builds as well; trying to force 8-byte alignment on critical sections ( http://forum.mc-server.org/showthread.php?tid=384 ) (diff)
downloadcuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar
cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.gz
cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.bz2
cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.lz
cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.xz
cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.zst
cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.zip
Diffstat (limited to 'source/cServer.cpp')
-rw-r--r--source/cServer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cServer.cpp b/source/cServer.cpp
index 116861aca..51d60d1d4 100644
--- a/source/cServer.cpp
+++ b/source/cServer.cpp
@@ -619,14 +619,14 @@ const AString & cServer::GetServerID(void) const
-void cServer::KickUser(const AString & iUserName, const AString & iReason)
+void cServer::KickUser(int a_ClientID, const AString & a_Reason)
{
cCSLock Lock(m_CSClients);
for (ClientList::iterator itr = m_Clients.begin(); itr != m_Clients.end(); ++itr)
{
- if ((*itr)->GetUsername() == iUserName)
+ if ((*itr)->GetUniqueID() == a_ClientID)
{
- (*itr)->Kick(iReason);
+ (*itr)->Kick(a_Reason);
}
} // for itr - m_Clients[]
}
@@ -635,12 +635,12 @@ void cServer::KickUser(const AString & iUserName, const AString & iReason)
-void cServer::AuthenticateUser(const AString & iUserName)
+void cServer::AuthenticateUser(int a_ClientID)
{
cCSLock Lock(m_CSClients);
for (ClientList::iterator itr = m_Clients.begin(); itr != m_Clients.end(); ++itr)
{
- if ((*itr)->GetUsername() == iUserName)
+ if ((*itr)->GetUniqueID() == a_ClientID)
{
(*itr)->Authenticate();
}