--- a/libpurple/protocols/zephyr/zephyr_tzc.c Wed Feb 03 18:51:15 2021 -0600 +++ b/libpurple/protocols/zephyr/zephyr_tzc.c Sat Feb 06 01:41:47 2021 -0600 @@ -362,12 +362,7 @@ escape_next = TRUE; } if(!in_quote) { - if(source[end] == '(') { - nesting++; - } - if(source[end] == ')') { - nesting--; - } + nesting = get_paren_level(nesting, source[end]); } if(source[end] == '"') { in_quote = !in_quote;