aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/CliRunnable.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 16:20:24 -0700
committermaximius <none@none>2009-10-17 16:20:24 -0700
commit3f338cc1c328c7280957583b50598292cd8fb64b (patch)
treeca209c2cd024e3902b7844b3224bceff7c5bb570 /src/trinitycore/CliRunnable.cpp
parente585187b248f48b3c6e9247b49fa07c6565d65e5 (diff)
*Massive cleanup redux.
--HG-- branch : trunk
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