From e2ad3e13fb1163f53304bbdbab4c44f12c16731d Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Tue, 19 Apr 2005 09:30:43 +0000 Subject: Added basic object definition for reviewal. Added basic scripting interface & Squirrel (squirrel.sf.net). --- src/connectionhandler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/connectionhandler.cpp') diff --git a/src/connectionhandler.cpp b/src/connectionhandler.cpp index 953f5c1..c3090bb 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 } } -- cgit