libpurple/protocols/zephyr/zephyr_tzc.c

changeset 40754
aef08fe14d13
parent 40750
e87c321f05fa
child 40778
507a61f2194a
--- 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;

mercurial