From d00d71f2455eb387b6303e6f26313f3deaaa97e3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 16 Jun 2015 09:46:02 +0200 Subject: [PATCH] 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 --- src/command/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/command.c b/src/command/command.c index 00223b29..d07d90b0 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -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) {