Fix /correct quotation marks usage

Add new `parse_args_as_one()` function to just use everything after the
command as the argument.

Fix https://github.com/profanity-im/profanity/issues/1404
This commit is contained in:
Michael Vetter
2020-07-23 09:40:22 +02:00
parent a5ca65453e
commit 8c0c5cb28c
4 changed files with 29 additions and 2 deletions

View File

@@ -40,6 +40,7 @@
gchar** parse_args(const char* const inp, int min, int max, gboolean* result);
gchar** parse_args_with_freetext(const char* const inp, int min, int max, gboolean* result);
gchar** parse_args_as_one(const char* const inp, int min, int max, gboolean* result);
int count_tokens(const char* const string);
char* get_start(const char* const string, int tokens);
GHashTable* parse_options(gchar** args, gchar** keys, gboolean* res);