Handle private messages, both ways

This commit is contained in:
Florent Le Coz
2013-11-10 06:33:04 +01:00
parent 7ba2d0fb45
commit 10d5287177
5 changed files with 39 additions and 8 deletions
+5
View File
@@ -188,6 +188,11 @@ void XmppComponent::handle_message(const Stanza& stanza)
if (body && !body->get_inner().empty())
bridge->send_channel_message(iid, body->get_inner());
}
else
{
if (body && !body->get_inner().empty())
bridge->send_private_message(iid, body->get_inner());
}
}
Bridge* XmppComponent::get_user_bridge(const std::string& user_jid)