From 362ebaf12fb6e57782dd5a060224d4aeb41c9ccc Mon Sep 17 00:00:00 2001 From: HanzZ Date: Tue, 5 Feb 2013 09:11:04 +0100 Subject: [PATCH] Swiften: Do not forward presences with MUCPayload or MUCUserPayload. --- backends/swiften/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends/swiften/main.cpp b/backends/swiften/main.cpp index 1a0bff55..7af2703b 100644 --- a/backends/swiften/main.cpp +++ b/backends/swiften/main.cpp @@ -224,6 +224,10 @@ class SwiftenPlugin : public NetworkPlugin { return; } + if (presence->getPayload() != NULL || presence->getPayload() != NULL) { + return; + } + LOG4CXX_INFO(logger, user << ": " << presence->getFrom().toBare().toString() << " presence changed"); std::string message = presence->getStatus();