mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #446 from ailin-nemui/fix_445
strip less whitespace from commands
This commit is contained in:
parent
fe600dd5dc
commit
4a2ee3c344
@ -757,7 +757,7 @@ static void cmd_completion(const char *data)
|
|||||||
int len;
|
int len;
|
||||||
|
|
||||||
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_OPTIONS |
|
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_OPTIONS |
|
||||||
PARAM_FLAG_GETREST | PARAM_FLAG_STRIP_TRAILING_WS,
|
PARAM_FLAG_GETREST,
|
||||||
"completion", &optlist, &key, &value))
|
"completion", &optlist, &key, &value))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ static void cmd_set(char *data)
|
|||||||
SETTINGS_REC *rec;
|
SETTINGS_REC *rec;
|
||||||
|
|
||||||
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST |
|
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST |
|
||||||
PARAM_FLAG_OPTIONS | PARAM_FLAG_STRIP_TRAILING_WS,
|
PARAM_FLAG_OPTIONS,
|
||||||
"set", &optlist, &key, &value))
|
"set", &optlist, &key, &value))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -496,8 +496,8 @@ static void cmd_dcc_close(char *data, IRC_SERVER_REC *server)
|
|||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
if (!cmd_get_params(data, &free_arg, 3 | PARAM_FLAG_GETREST |
|
if (!cmd_get_params(data, &free_arg, 3 | PARAM_FLAG_GETREST,
|
||||||
PARAM_FLAG_STRIP_TRAILING_WS, &typestr, &nick, &arg))
|
&typestr, &nick, &arg))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (*nick == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
if (*nick == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||||
|
Loading…
Reference in New Issue
Block a user