Swiften: Do not forward presences with MUCPayload or MUCUserPayload.
This commit is contained in:
parent
8e28ea2f10
commit
362ebaf12f
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue