Make version requests work with global user JIDs as well

fix #3210
This commit is contained in:
louiz’ committed 2016-10-03 21:35:16 +02:00
1 parent 45aebb8d8a
commit 28f1dd7654
3 files changed
+33 -2

No files matched your search

+2 -1
View File
@@ -412,7 +412,8 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
else if ((query = stanza.get_child("query", VERSION_NS)))
{
Iid iid(to.local, bridge);
if (iid.type != Iid::Type::Server && !to.resource.empty())
if ((iid.type == Iid::Type::Channel && !to.resource.empty()) ||
(iid.type == Iid::Type::User))
{
// Get the IRC user version
std::string target;