From 48375c7ea578313a0b578078eadada2e3744b363 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 4 Jan 2006 22:02:14 +0000 Subject: Added default behaviour to protocol. Added a client login limitation check. Some cleanups. --- src/connectionhandler.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/connectionhandler.cpp') diff --git a/src/connectionhandler.cpp b/src/connectionhandler.cpp index 3009ae56..9ce663df 100644 --- a/src/connectionhandler.cpp +++ b/src/connectionhandler.cpp @@ -33,8 +33,6 @@ #include "script.h" #endif -#define MAX_CLIENTS 1024 - /** * TEMPORARY * Split a string into a std::vector delimiting elements by 'split'. This @@ -295,3 +293,8 @@ void ConnectionHandler::sendAround(tmwserv::BeingPtr beingPtr, MessageOut &msg) } } } + +unsigned int ConnectionHandler::getClientNumber() +{ + return clients.size(); +} -- cgit v1.2.3-70-g09d2