summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-01-04 01:53:50 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-01-04 01:59:36 +0100
commitfbec16f1a208881ea49923287aae27978d79681e (patch)
treeaaa68a23a507e7f26899132865f65816315ce882 /src/xmpp
parente840704b58a984351971e8034e74f5e9fdfaf114 (diff)
downloadbiboumi-fbec16f1a208881ea49923287aae27978d79681e.tar.gz
biboumi-fbec16f1a208881ea49923287aae27978d79681e.tar.bz2
biboumi-fbec16f1a208881ea49923287aae27978d79681e.tar.xz
biboumi-fbec16f1a208881ea49923287aae27978d79681e.zip
Possibility to change a channel's topic
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/xmpp_component.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index a0054ea..b370daa 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -217,6 +217,9 @@ void XmppComponent::handle_message(const Stanza& stanza)
if (to.resource.empty())
if (body && !body->get_inner().empty())
bridge->send_channel_message(iid, body->get_inner());
+ XmlNode* subject = stanza.get_child(COMPONENT_NS":subject");
+ if (subject)
+ bridge->set_channel_topic(iid, subject->get_inner());
}
else
{