aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/CliRunnable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/trinitycore/CliRunnable.cpp')
-rw-r--r--src/trinitycore/CliRunnable.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp
index 966b0b4dabb..e325c2ca366 100644
--- a/src/trinitycore/CliRunnable.cpp
+++ b/src/trinitycore/CliRunnable.cpp
@@ -77,7 +77,7 @@ char ** cli_completion(const char * text, int start, int end)
{
char ** matches;
matches = (char**)NULL;
-
+
if(start == 0)
matches = rl_completion_matches((char*)text,&command_finder);
else
@@ -348,7 +348,6 @@ bool ChatHandler::HandleServerSetDiffTimeCommand(const char *args)
return true;
}
-
/// @}
#ifdef linux
@@ -401,14 +400,13 @@ void CliRunnable::run()
#endif
if (command_str != NULL)
{
- for(int x=0;command_str[x];x++)
+ for (int x=0; command_str[x]; x++)
if(command_str[x]=='\r'||command_str[x]=='\n')
{
command_str[x]=0;
break;
}
-
if(!*command_str)
{
#if PLATFORM == WINDOWS