Skip to content

Inclusion Exclusion Conditions

R3d edited this page Dec 2, 2026 · 1 revision

Inclusion/Exclusion Conditions

Inclusion/exclusion conditions can be specified by arrays of users, channels, servers, server message types, and/or combined criteria. A combined criterion can each include a user, channel, server, and/or server message type, but will only be matched if all are matched. The conditions are met if any individual condition is matched.

Inclusion conditions will take precedence over exclusion conditions.

You can specify all conditions by setting to "all" or "*".

Types

Condition Type Description
users An array of nicknames. Conditions will apply to messages sent by or queries with a user with one of the specified nicknames.
channels An array of channel names. Conditions will apply to messages in any of the specified channels.
servers An array of server names. Conditions will apply to all messages on any of the specified servers.
server_messages An array of server message types. Conditions will apply to server messages of any of the specified types.
criteria Each criterion in the array can have a specified user, users, channel, channels, server, and/or server_message. All specified fields must match for the criterion to match.

Examples

This example excludes all messages in #woggle except for messages from GH-Bot.

include = { users = ["GH-Bot"] }
exclude = { channels = ["#woggle"] }

This example excludes messages from GH-Bot and ChanServ in #woggle.

exclude = { criteria = [{ channel = "#woggle", user = "GH-Bot" }, { channel = "#woggle", user = "ChanServ" }] }

Using a regular TOML table can help with legibility, as in this example excluding notifications for highlights by GH-Bot and ChanServ in #woggle.

[notifications.highlight.exclude]
criteria = [{ channel = "#woggle", user = "GH-Bot" }, 
            { channel = "#woggle", user = "ChanServ" }]

This example mutes unread indicators in a noisy channel while still showing highlight indicators when you are mentioned. See sidebar unread indicators.

[sidebar.unread_indicator]
exclude = { channels = ["#noisy-channel"] }

To hide highlight indicators as well, set the same conditions on highlight_exclude:

[sidebar.unread_indicator]
exclude = { channels = ["#noisy-channel"] }
highlight_exclude = { channels = ["#noisy-channel"] }

This example excludes messages in #woggle on the libera server only.

exclude = { criteria = [{ channel = "#woggle", server = "libera" }] }

This example excludes messages in all servers except libera.

include = { servers = ["libera"] }
exclude = "all"

Clone this wiki locally