view mod_unsubscriber/README.md @ 6519:01d8bfbfc435

mod_pubsub_serverinfo: Fix check for local domain The module was checking whether a host exists, but this may be misleading if our host is loaded before the host that is being checked. This change makes it check the config. This will provide a false positive in the rare case that the host is defined but not activated/enabled. But we don't have an API currently for "is this host configured and enabled?"
author Matthew Wild <mwild1@gmail.com>
date Tue, 21 Apr 2026 19:54:19 +0100
parents 9c9889ad4302
children
line wrap: on
line source

Over the years, some servers stop working for various reasons, and leave behind broken roster subscriptions and dysfunctional group chat bookmarks
that trigger failing s2s connections. Sometimes users make mistakes when adding a contact or group chat, causing your server to make repeated attempts
to connect to a domain with a typo in it.

This module allows cleaning up such cases by unsubscribing local users
from their contacts on those servers.
Use with care.

To use, simply add as a `Component` for each domain you want to stop seeing failed connection logs about.

``` lua
Component "gmail.com" "unsubscriber"
modules_disabled = { "s2s" }
```