Possibility to change a channel's topic

This commit is contained in:
Florent Le Coz committed 2014-01-04 01:59:36 +01:00
1 parent e840704b58
commit fbec16f1a2
5 files changed
+17

No files matched your search

+3
View File
@@ -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
{