"Chat message" is not the same as "any kind of message"

This commit is contained in:
Florent Le Coz
2014-05-15 00:32:31 +02:00
parent bafde1af9f
commit 7c7da2cedb
+1 -1
View File
@@ -389,7 +389,7 @@ void XmppComponent::handle_message(const Stanza& stanza)
if (kickable_error)
bridge->shutdown("Error from remote client");
}
else
else if (type == "chat")
{
if (body && !body->get_inner().empty())
bridge->send_private_message(iid, body->get_inner());