Reformat and remove some unnecessary tests in parse_line()
Remove some unnecessary tests for !line: next_expr(&line, ...) can't set line to NULL. Fixes some whitespace breakage.
This commit is contained in:
@@ -3298,9 +3298,9 @@ BUILT_IN_COMMAND(flush)
|
||||
/* e_wall: used for WALLOPS */
|
||||
BUILT_IN_COMMAND(e_wall)
|
||||
{
|
||||
|
||||
if ((!args || !*args))
|
||||
if (!args || !*args)
|
||||
return;
|
||||
|
||||
set_display_target(NULL, LOG_WALLOP);
|
||||
send_to_server("%s :%s", command, args);
|
||||
if (get_server_flag(from_server, USER_MODE_W))
|
||||
@@ -4337,8 +4337,6 @@ void BX_parse_line (const char *name, char *org_line, const char *args, int hist
|
||||
int args_flag = 0,
|
||||
die = 0;
|
||||
|
||||
|
||||
|
||||
if (handle_local)
|
||||
make_local_stack((char *)name);
|
||||
|
||||
@@ -4368,11 +4366,11 @@ void BX_parse_line (const char *name, char *org_line, const char *args, int hist
|
||||
break;
|
||||
}
|
||||
|
||||
while (line && *line && ((*line == ';') || (my_isspace(*line))))
|
||||
while (*line == ';' || my_isspace(*line))
|
||||
*line++ = '\0';
|
||||
}
|
||||
|
||||
if (!line || !*line || die)
|
||||
if (!*line || die)
|
||||
break;
|
||||
|
||||
stuff = expand_alias(line, args, &args_flag, &line);
|
||||
|
||||
Reference in New Issue
Block a user