diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-24 13:39:20 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-24 13:39:20 +0300 |
commit | 93286531b37b67dbbad71509e429ba2a1a9158e9 (patch) | |
tree | 37578f30964d3833da81aebb6a0f5b42bdf20a79 /protocols/JabberG | |
parent | a0f25fe164ac961c683874d9200ea5698ec39509 (diff) |
Jabber: "to" verification removed because it doesn't solve problems with carbons anyway
Diffstat (limited to 'protocols/JabberG')
-rwxr-xr-x | protocols/JabberG/src/jabber_thread.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index de4f25f910..b1b654fffb 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1068,16 +1068,9 @@ void CJabberProto::OnProcessMessage(HXML node, ThreadData *info) if (!XmlGetName(node) || mir_wstrcmp(XmlGetName(node), L"message"))
return;
- const wchar_t *from, *to, *type = XmlGetAttrValue(node, L"type");
+ const wchar_t *from, *type = XmlGetAttrValue(node, L"type");
if ((from = XmlGetAttrValue(node, L"from")) == nullptr)
return;
- if ((to = XmlGetAttrValue(node, L"to")) == nullptr)
- return;
-
- if (mir_wstrcmpi(to, m_szJabberJID) && mir_wstrcmpi(to, info->fullJID)) {
- debugLogA("message sent to wrong addressee: %S", to);
- return;
- }
const wchar_t *idStr = XmlGetAttrValue(node, L"id");
pResourceStatus pFromResource(ResourceInfoFromJID(from));
@@ -2178,5 +2171,4 @@ int ThreadData::send_no_strm_mgmt(HXML node) xmlFree(str);
return result;
-
-}
\ No newline at end of file +}
|