mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Use the PARAM_FLAG_STRIP_TRAILING_WS flag wherever possible.
This commit is contained in:
parent
3d9b9d473f
commit
d4676c9855
11 changed files with 33 additions and 25 deletions
|
|
@ -87,8 +87,9 @@ static void cmd_log_open(const char *data)
|
|||
int level;
|
||||
|
||||
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST |
|
||||
PARAM_FLAG_UNKNOWN_OPTIONS | PARAM_FLAG_OPTIONS,
|
||||
"log open", &optlist, &fname, &levels))
|
||||
PARAM_FLAG_UNKNOWN_OPTIONS | PARAM_FLAG_OPTIONS |
|
||||
PARAM_FLAG_STRIP_TRAILING_WS, "log open", &optlist,
|
||||
&fname, &levels))
|
||||
return;
|
||||
if (*fname == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue