Allow watch module to have multiple masks per ID. #620

Open
opened 2026-10-05 04:33:55 +02:00 by adam · 1 comment
Owner

Right now the watch module only allows one mask per ID. Having multiple masks per ID would be simpler and a lot cleaner in my opinion.

<*watch> ------
<*watch> Id: 1
<*watch> HostMask: *!*@unaffiliated/kindone
<*watch> Target: *kindone
<*watch> Pattern: *
<*watch> Sources: #*
<*watch> DetachedClientOnly: No
<*watch> DetachedChannelOnly: No
<*watch> ------
<*watch> Id: 2
<*watch> HostMask: *!uid3688@gateway/web/irccloud.com/*
<*watch> Target: *kindone
<*watch> Pattern: *
<*watch> Sources: #*
<*watch> DetachedClientOnly: No
<*watch> DetachedChannelOnly: No
<*watch> ------
<*watch> Id: 3
<*watch> HostMask: *!*@1.2.3.4
<*watch> Target: *kindone
<*watch> Pattern: *
<*watch> Sources: #*
<*watch> DetachedClientOnly: No
<*watch> DetachedChannelOnly: No
<*watch> ------

Suggested output:

<*watch> ------
<*watch> Id: 1
<*watch> HostMask: *!*@unaffiliated/kindone
<*watch> HostMask: *!uid3688@gateway/web/irccloud.com/*
<*watch> HostMask: *!*@1.2.3.4
<*watch> Target: *kindone
<*watch> Pattern: *
<*watch> Sources: #*
<*watch> DetachedClientOnly: No
<*watch> DetachedChannelOnly: No
<*watch> ------

Maybe add these commands to deal with the masks:

/msg *watch addmask id1 *!*@new.mask.goes.here.com
/msg *watch delmask id1 *!*@unaffiliated/kindone

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Right now the watch module only allows one mask per ID. Having multiple masks per ID would be simpler and a lot cleaner in my opinion. ``` <*watch> ------ <*watch> Id: 1 <*watch> HostMask: *!*@unaffiliated/kindone <*watch> Target: *kindone <*watch> Pattern: * <*watch> Sources: #* <*watch> DetachedClientOnly: No <*watch> DetachedChannelOnly: No <*watch> ------ <*watch> Id: 2 <*watch> HostMask: *!uid3688@gateway/web/irccloud.com/* <*watch> Target: *kindone <*watch> Pattern: * <*watch> Sources: #* <*watch> DetachedClientOnly: No <*watch> DetachedChannelOnly: No <*watch> ------ <*watch> Id: 3 <*watch> HostMask: *!*@1.2.3.4 <*watch> Target: *kindone <*watch> Pattern: * <*watch> Sources: #* <*watch> DetachedClientOnly: No <*watch> DetachedChannelOnly: No <*watch> ------ ``` Suggested output: ``` <*watch> ------ <*watch> Id: 1 <*watch> HostMask: *!*@unaffiliated/kindone <*watch> HostMask: *!uid3688@gateway/web/irccloud.com/* <*watch> HostMask: *!*@1.2.3.4 <*watch> Target: *kindone <*watch> Pattern: * <*watch> Sources: #* <*watch> DetachedClientOnly: No <*watch> DetachedChannelOnly: No <*watch> ------ ``` Maybe add these commands to deal with the masks: ``` /msg *watch addmask id1 *!*@new.mask.goes.here.com /msg *watch delmask id1 *!*@unaffiliated/kindone ``` ## <bountysource-plugin> Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27507620-allow-watch-module-to-have-multiple-masks-per-id?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:112045668 -->
Author
Owner

Right now when I want to watch someone who has either more than one known nick, or multiple connections it gets really bad and cluttered.

For example: I'm currently watching about 6 people, yet I have 50 something different ids to maintain. So +1 for making that a lot easier.

Right now when I want to watch someone who has either more than one known nick, or multiple connections it gets really bad and cluttered. For example: I'm currently watching about 6 people, yet I have 50 something different ids to maintain. So +1 for making that a lot easier. <!-- github-comment-id:149056634 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#620