summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/msgparser.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/msgparser.cc b/src/msgparser.cc
index 79172e9..c05a9ee 100644
--- a/src/msgparser.cc
+++ b/src/msgparser.cc
@@ -104,7 +104,7 @@ MsgVector parse_msg(std::string data) {
if(inside_quote) {
printf("Appending %c\n", ch);
token += ch;
- continue;
+ break;
}
if(token.empty()) continue; // skip multiple white spaces and pre white space
printf("Adding token %s\n", token.c_str());
@@ -112,6 +112,11 @@ MsgVector parse_msg(std::string data) {
token.clear();
break;
case ';':
+ if(inside_quote) {
+ printf("Appending %c\n", ch);
+ token += ch;
+ break;
+ }
printf("Adding msg...\n");
if(!token.empty()) {
tokens.push_back(token);