Don't print anything about empty commands.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2428 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-10-27 10:57:06 +00:00
parent aa9105dae7
commit c3dc9b0b8a
1 changed files with 7 additions and 4 deletions

View File

@ -464,8 +464,11 @@ char *Cmd_Exec(cluster_t *cluster, sv_t *qtv, char *arg[MAX_ARGS], char *buffer,
{
while(fgets(line, sizeof(line)-1, f))
{
res = Rcon_Command(cluster, qtv, line, buffer, sizeofbuffer, localcommand);
Sys_Printf(cluster, "%s", res); //this is perhaps wrong.
if (*line)
{
res = Rcon_Command(cluster, qtv, line, buffer, sizeofbuffer, localcommand);
Sys_Printf(cluster, "%s", res); //this is perhaps wrong.
}
}
fclose(f);
return "Execed\n";
@ -610,7 +613,7 @@ char *Cmd_AllowNQ(cluster_t *cluster, sv_t *qtv, char *arg[MAX_ARGS], char *buff
snprintf(buffer, sizeofbuffer, "allownq is currently %i\n", cluster->allownqclients);
return buffer;
}
cluster->allownqclients = atoi(arg[1]);
cluster->allownqclients = !!atoi(arg[1]);
return "allownq set\n";
}
char *Cmd_MaxProxies(cluster_t *cluster, sv_t *qtv, char *arg[MAX_ARGS], char *buffer, int sizeofbuffer, qboolean localcommand)
@ -761,7 +764,7 @@ char *Cmd_MVDPort(cluster_t *cluster, sv_t *qtv, char *arg[MAX_ARGS], char *buff
char *Cmd_Commands(cluster_t *cluster, sv_t *qtv, char *arg[MAX_ARGS], char *buffer, int sizeofbuffer, qboolean localcommand)
{
return "fixme";
return "fixme\n";
}
typedef struct rconcommands_s {