From ad775af04cab9f882612bcf03967e415dbfa13f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Sep 2022 06:57:58 -0700 Subject: code simplification --- protocols/JabberG/src/jabber_console.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_console.cpp b/protocols/JabberG/src/jabber_console.cpp index 88df74e032..547ac15c80 100644 --- a/protocols/JabberG/src/jabber_console.cpp +++ b/protocols/JabberG/src/jabber_console.cpp @@ -469,12 +469,11 @@ public: cmbFilter.AddStringA(g_JabberFeatCapPairs[i].szFeature); for (int i = 0; i < g_cJabberFeatCapPairsExt; i++) cmbFilter.AddStringA(g_JabberFeatCapPairsExt[i].szFeature); + } - if (m_proto->m_filterInfo.type == TFilterInfo::T_XMLNS) - break; - __fallthrough; - + switch (m_proto->m_filterInfo.type) { case TFilterInfo::T_JID: + case TFilterInfo::T_ANY: LISTFOREACH(i, m_proto, LIST_ROSTER) if (auto *item = m_proto->ListGetItemPtrFromIndex(i)) cmbFilter.AddString(Utf2T(item->jid)); -- cgit v1.2.3