Swiften: Do not forward presences with MUCPayload or MUCUserPayload.

This commit is contained in:
HanzZ 2013-02-05 09:11:04 +01:00
parent 8e28ea2f10
commit 362ebaf12f

View file

@ -224,6 +224,10 @@ class SwiftenPlugin : public NetworkPlugin {
return;
}
if (presence->getPayload<Swift::MUCUserPayload>() != NULL || presence->getPayload<Swift::MUCPayload>() != NULL) {
return;
}
LOG4CXX_INFO(logger, user << ": " << presence->getFrom().toBare().toString() << " presence changed");
std::string message = presence->getStatus();