From 3f9ea75bfa990b2079c581052073fcf4962dd594 Mon Sep 17 00:00:00 2001 From: click Date: Fri, 23 Jul 2010 09:26:23 +0200 Subject: Add SOAP-implementation (based on Benjys patch and adapted for latest core by xk1) --HG-- branch : trunk --- src/server/worldserver/CommandLine/CliRunnable.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/server/worldserver/CommandLine') diff --git a/src/server/worldserver/CommandLine/CliRunnable.cpp b/src/server/worldserver/CommandLine/CliRunnable.cpp index 23a023972c9..294c512759f 100644 --- a/src/server/worldserver/CommandLine/CliRunnable.cpp +++ b/src/server/worldserver/CommandLine/CliRunnable.cpp @@ -85,7 +85,7 @@ char ** cli_completion(const char * text, int start, int end) } #endif -void utf8print(const char* str) +void utf8print(void* arg, const char* str) { #if PLATFORM == PLATFORM_WINDOWS wchar_t wtemp_buf[6000]; @@ -106,6 +106,11 @@ void utf8print(const char* str) #endif } +void commandFinished(void*, bool sucess) +{ + printf("TC> "); + fflush(stdout); +} /// Delete a user account and all associated characters in this realm /// \todo This function has to be enhanced to respect the login/realm split (delete char, delete account chars in realm, delete account chars in realm then delete account bool ChatHandler::HandleAccountDeleteCommand(const char* args) @@ -741,7 +746,7 @@ void CliRunnable::run() continue; } fflush(stdout); - sWorld.QueueCliCommand(&utf8print,command.c_str()); + sWorld.QueueCliCommand(new CliCommandHolder(NULL, command.c_str(), &utf8print, &commandFinished)); #if PLATFORM != WINDOWS add_history(command.c_str()); #endif -- cgit v1.2.3