diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-12 12:32:14 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-12 12:32:14 +0000 |
commit | 9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432 (patch) | |
tree | 5a766717b6af2be67b1475ae2b520e1918599dc1 /src/connectionhandler.cpp | |
parent | 7a8b2b11e989e474dceb30330852174d877b1601 (diff) | |
download | manaserv-9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432.tar.gz manaserv-9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432.tar.bz2 manaserv-9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432.tar.xz manaserv-9fa9cb8fa13049fa4ba28d31159b4e1a0c6c0432.zip |
Some cleanups mostly in account class formatting.
Diffstat (limited to 'src/connectionhandler.cpp')
-rw-r--r-- | src/connectionhandler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/connectionhandler.cpp b/src/connectionhandler.cpp index 6099280f..5f09e9c7 100644 --- a/src/connectionhandler.cpp +++ b/src/connectionhandler.cpp @@ -31,6 +31,11 @@ #define MAX_CLIENTS 1024 +ClientData::ClientData(): + inp(0) +{ +} + ConnectionHandler::ConnectionHandler() { } @@ -106,6 +111,8 @@ void ConnectionHandler::startListen(ListenThreadData *ltd) } else { + // Copy the incoming data to the in buffer of this + // client buffer[result] = 0; logger->log("Received %s", buffer); #ifdef SCRIPT_SUPPORT |