summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-12 15:38:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-12 15:38:01 +0300
commite0edef78dc6d374eb466cee54b825cbe31ae4a64 (patch)
tree8b9dfe6d40161eef13d926ef19ac3fffcc90e85c /protocols
parentc5c38cb071d5d3addf1be2e2fcabd173a1b09037 (diff)
Jabber: minor improvement for OMEMO printing
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_omemo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp
index a0836b9639..d2699d37fb 100644
--- a/protocols/JabberG/src/jabber_omemo.cpp
+++ b/protocols/JabberG/src/jabber_omemo.cpp
@@ -1363,8 +1363,11 @@ complete:
if(*p && *(p+1)) p+=2;
for (; *p; p++) {
buf.AppendChar(toupper(*p));
- if (++i % 8 == 0)
+ i++;
+ if (i % 8 == 0)
buf.AppendChar(' ');
+ if (i % 32 == 0)
+ buf.AppendChar('\n');
}
}