diff options
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 953f5c15..c3090bbe 100644 --- a/src/connectionhandler.cpp +++ b/src/connectionhandler.cpp @@ -24,6 +24,10 @@ #include "connectionhandler.h" #include "netsession.h" +#ifdef SCRIPT_SUPPORT +#include "script.h" +#endif + #define MAX_CLIENTS 1024 ConnectionHandler::ConnectionHandler() @@ -102,6 +106,9 @@ void ConnectionHandler::startListen(ListenThreadData *ltd) { buffer[result] = 0; printf("Received %s\n", buffer); +#ifdef SCRIPT_SUPPORT + script->message(buffer); +#endif } } |