*Massive cleanup redux.
--HG-- branch : trunk
This commit is contained in:
1 parent
e585187b24
commit
3f338cc1c3
862 files changed
+2736
-4797
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user