mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Let's only strip trailing whitespace when parsing command
Allows for "quoting" a command--doing nothing but sending the string: SPC/command As we're used to from for example irc clients. Fixes boothj5/profanity#513
This commit is contained in:
parent
fb0e065902
commit
d00d71f245
@ -1844,7 +1844,7 @@ cmd_process_input(char *inp)
|
||||
{
|
||||
log_debug("Input received: %s", inp);
|
||||
gboolean result = FALSE;
|
||||
g_strstrip(inp);
|
||||
g_strchomp(inp);
|
||||
|
||||
// just carry on if no input
|
||||
if (strlen(inp) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user