diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-12 14:10:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-12 14:10:07 +0200 |
commit | ff41a40b57d72cd0247cd71ad2239156e9f9eecc (patch) | |
tree | e04adc71d1f18f8779fc27bc9d35bfaae0353240 /libcontacts_parse_contact.c | |
parent | m fix (diff) | |
download | libcontacts-ff41a40b57d72cd0247cd71ad2239156e9f9eecc.tar.gz libcontacts-ff41a40b57d72cd0247cd71ad2239156e9f9eecc.tar.bz2 libcontacts-ff41a40b57d72cd0247cd71ad2239156e9f9eecc.tar.xz |
Fix parsing of block data
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcontacts_parse_contact.c')
-rw-r--r-- | libcontacts_parse_contact.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcontacts_parse_contact.c b/libcontacts_parse_contact.c index ead729a..f16ee94 100644 --- a/libcontacts_parse_contact.c +++ b/libcontacts_parse_contact.c @@ -407,13 +407,13 @@ libcontacts_parse_contact(char *data, struct libcontacts_contact *contact) if (TEST(unindent(p), "SRV") && !contact->blocks[i]->service) { if (!(contact->blocks[i]->service = strdup(getstr(p)))) goto fail; - } else if (!strcmp(p, "OFF") && !contact->blocks[i]->shadow_block) { + } else if (!strcmp(unindent(p), "OFF") && !contact->blocks[i]->shadow_block) { contact->blocks[i]->shadow_block = LIBCONTACTS_BLOCK_OFF; - } else if (!strcmp(p, "BUSY") && !contact->blocks[i]->shadow_block) { + } else if (!strcmp(unindent(p), "BUSY") && !contact->blocks[i]->shadow_block) { contact->blocks[i]->shadow_block = LIBCONTACTS_BLOCK_BUSY; - } else if (!strcmp(p, "IGNORE") && !contact->blocks[i]->shadow_block) { + } else if (!strcmp(unindent(p), "IGNORE") && !contact->blocks[i]->shadow_block) { contact->blocks[i]->shadow_block = LIBCONTACTS_BLOCK_IGNORE; - } else if (!strcmp(p, "EXPLICIT")) { + } else if (!strcmp(unindent(p), "EXPLICIT")) { contact->blocks[i]->explicit = 1; } else if (TEST(unindent(p), "ASK") && !contact->blocks[i]->soft_unblock && (t = gettime(p))) { contact->blocks[i]->soft_unblock = t; |