1
0
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:
Daniel 2015-06-16 09:46:02 +02:00
parent fb0e065902
commit d00d71f245

View File

@ -1844,7 +1844,7 @@ cmd_process_input(char *inp)
{ {
log_debug("Input received: %s", inp); log_debug("Input received: %s", inp);
gboolean result = FALSE; gboolean result = FALSE;
g_strstrip(inp); g_strchomp(inp);
// just carry on if no input // just carry on if no input
if (strlen(inp) == 0) { if (strlen(inp) == 0) {