diff options
Diffstat (limited to 'src/connectionhandler.cpp')
-rw-r--r-- | src/connectionhandler.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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(); +} |