From 48d30d6ab4657e00c0c861d67285256daeff1142 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 1 Feb 2012 22:38:03 +0000 Subject: 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 --- source/cServer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/cServer.h') diff --git a/source/cServer.h b/source/cServer.h index 718ac4c36..b2a46f78a 100644 --- a/source/cServer.h +++ b/source/cServer.h @@ -29,10 +29,13 @@ public: //tolua_export void Shutdown(); void SendMessage( const char* a_Message, cPlayer* a_Player = 0, bool a_bExclude = false ); //tolua_export + + void KickUser(const AString & iUserName, const AString & iReason); + void AuthenticateUser(const AString & iUserName); // Called by cAuthenticator to auth the specified user static void ServerListenThread( void* a_Args ); - const char* GetServerID(); + const AString & GetServerID(void) const; private: friend class cRoot; // so cRoot can create and destroy cServer cServer(); -- cgit v1.2.3