diff options
| author | click <none@none> | 2010-07-23 09:26:23 +0200 |
|---|---|---|
| committer | click <none@none> | 2010-07-23 09:26:23 +0200 |
| commit | 3f9ea75bfa990b2079c581052073fcf4962dd594 (patch) | |
| tree | 919ffc43bd81fd5b0949c9edac5a8c29b7918b3e /src/server/worldserver/CommandLine | |
| parent | 912a099d491a58e068994c63a1055ab17af37634 (diff) | |
Add SOAP-implementation (based on Benjys patch and adapted for latest core by xk1)
--HG--
branch : trunk
Diffstat (limited to 'src/server/worldserver/CommandLine')
| -rw-r--r-- | src/server/worldserver/CommandLine/CliRunnable.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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 |
