mirror of
https://github.com/irssi/irssi.git
synced 2024-06-23 06:35:36 +00:00
Strip the trailing whitespace from /join commands.
Fixes #99 for great good.
This commit is contained in:
parent
1006fee802
commit
3d9b9d473f
|
@ -751,7 +751,7 @@ int cmd_get_params(const char *data, gpointer *free_me, int count, ...)
|
||||||
|
|
||||||
/* strip the trailing whitespace */
|
/* strip the trailing whitespace */
|
||||||
if (count & PARAM_FLAG_STRIP_TRAILING_WS) {
|
if (count & PARAM_FLAG_STRIP_TRAILING_WS) {
|
||||||
arg = g_strchomp (arg);
|
arg = g_strchomp(arg);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
arg = (count & PARAM_FLAG_NOQUOTES) ?
|
arg = (count & PARAM_FLAG_NOQUOTES) ?
|
||||||
|
|
|
@ -122,7 +122,8 @@ static void cmd_join(const char *data, SERVER_REC *server)
|
||||||
void *free_arg;
|
void *free_arg;
|
||||||
|
|
||||||
if (!cmd_get_params(data, &free_arg, 1 | PARAM_FLAG_OPTIONS |
|
if (!cmd_get_params(data, &free_arg, 1 | PARAM_FLAG_OPTIONS |
|
||||||
PARAM_FLAG_UNKNOWN_OPTIONS | PARAM_FLAG_GETREST,
|
PARAM_FLAG_UNKNOWN_OPTIONS | PARAM_FLAG_GETREST |
|
||||||
|
PARAM_FLAG_STRIP_TRAILING_WS,
|
||||||
"join", &optlist, &pdata))
|
"join", &optlist, &pdata))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user