about summary refs log tree commit diff stats
path: root/src/tools
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-08-27 00:05:09 +0100
committerJames Booth <boothj5@gmail.com>2013-08-27 00:05:09 +0100
commitbac97125a33aeacc9d1bc70c557ee53c2c3459d4 (patch)
treea5b9c2890bff84c4a52e6b161945cd6b5426c636 /src/tools
parentf2509b078a4ab11c3ec646aa6b8c63fd46732576 (diff)
downloadprofani-tty-bac97125a33aeacc9d1bc70c557ee53c2c3459d4.tar.gz
Fix quoted nicknames in /group add
fixes #233
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/parser.c b/src/tools/parser.c
index dabf7128..f273923a 100644
--- a/src/tools/parser.c
+++ b/src/tools/parser.c
@@ -210,7 +210,7 @@ parse_args_with_freetext(const char * const inp, int min, int max)
             } else {
                 in_token = TRUE;
                 num_tokens++;
-                if (num_tokens == max + 1) {
+                if ((num_tokens == max + 1) && (curr_uni != '"')) {
                     in_freetext = TRUE;
                 } else if (curr_uni == '"') {
                     in_quotes = TRUE;