summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-10 06:33:04 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-10 06:33:04 +0100
commit10d528717723a72dd3240c634980a461cf9fa2df (patch)
tree51f640715c78b4d76a04a4952edb5c6a5acf6de0 /src/xmpp
parent7ba2d0fb45e7466e6fb38002bf1866d1f5e39c28 (diff)
downloadbiboumi-10d528717723a72dd3240c634980a461cf9fa2df.tar.gz
biboumi-10d528717723a72dd3240c634980a461cf9fa2df.tar.bz2
biboumi-10d528717723a72dd3240c634980a461cf9fa2df.tar.xz
biboumi-10d528717723a72dd3240c634980a461cf9fa2df.zip
Handle private messages, both ways
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/xmpp_component.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index ba45fe4..7cf2ce0 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -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)