summaryrefslogtreecommitdiff
path: root/src/connectionhandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-01-04 22:02:14 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-01-04 22:02:14 +0000
commit48375c7ea578313a0b578078eadada2e3744b363 (patch)
treeb1e3af5e69acee6d3acc22bb75454ef172474092 /src/connectionhandler.cpp
parent0417f123f1975202900ed0b3ec1bb8362f9f1567 (diff)
downloadmanaserv-48375c7ea578313a0b578078eadada2e3744b363.tar.gz
manaserv-48375c7ea578313a0b578078eadada2e3744b363.tar.bz2
manaserv-48375c7ea578313a0b578078eadada2e3744b363.tar.xz
manaserv-48375c7ea578313a0b578078eadada2e3744b363.zip
Added default behaviour to protocol. Added a client login limitation check. Some cleanups.
Diffstat (limited to 'src/connectionhandler.cpp')
-rw-r--r--src/connectionhandler.cpp7
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();
+}