Possibility to change a channel's topic

This commit is contained in:
Florent Le Coz
2014-01-04 01:59:36 +01:00
parent e840704b58
commit fbec16f1a2
5 changed files with 17 additions and 0 deletions
+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
{