about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDaniel <quite@hack.org>2015-06-16 09:46:02 +0200
committerDaniel <quite@hack.org>2015-06-16 09:46:02 +0200
commitd00d71f2455eb387b6303e6f26313f3deaaa97e3 (patch)
treed5918a223c2a648765401a9069a1ed53687e66b7 /src
parentfb0e0659023e6483418de2a06626d640644e94d9 (diff)
downloadprofani-tty-d00d71f2455eb387b6303e6f26313f3deaaa97e3.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/command/command.c2
1 files changed, 1 insertions, 1 deletions
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) {