Default user modes #667

Open
opened 2026-10-05 04:37:18 +02:00 by adam · 6 comments
Owner

As ZNC has already default channel modes for channels created by ZNC, it would be nice of there were also default user modes instead of having to play with perform in user and network settings (I am not sure if channel was in global settings, but if it is, user modes should be there too).

It should allow at least input <+|-><modes e.g. `+QRgw-iI``, but in similar request for WeeChat (https://github.com/weechat/weechat/issues/377) more formats are requested.

---

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

As ZNC has already default channel modes for channels created by ZNC, it would be nice of there were also default user modes instead of having to play with perform in user and network settings (I am not sure if channel was in global settings, but if it is, user modes should be there too). It should allow at least input `<+|-><modes` e.g. `+QRgw-iI``, but in similar request for WeeChat (https://github.com/weechat/weechat/issues/377) more formats are requested. ## <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29529607-default-user-modes?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:124583596 -->
Author
Owner

How WeeChat did it:

Done with a new server option "usermode" (thanks sim642 for the PR).
The content is just modes sent in the command /mode $nick .

~~ https://github.com/weechat/weechat/issues/377#issuecomment-266280444

How WeeChat did it: > Done with a new server option "usermode" (thanks sim642 for the PR). The content is just modes sent in the command /mode $nick <modes>. ~~ https://github.com/weechat/weechat/issues/377#issuecomment-266280444 <!-- github-comment-id:266283982 -->
Author
Owner

A duct-tape workaround would be to use the perform module:

/msg *status loadmod perform
/msg *perform add mode lavacano +giw

The problem with this method is that it would only work if my nick happened to be "lavacano" after znc's finished authenticating to the server (and suppose that doesn't happen, because maybe I lost connection and the server hasn't noticed yet). As far as I'm aware, ZNC supports nothing like a $nick token, so perform can't guarantee that it will work.

A duct-tape workaround would be to use the perform module: ``` /msg *status loadmod perform /msg *perform add mode lavacano +giw ``` The problem with this method is that it would only work if my nick happened to be "lavacano" after znc's finished authenticating to the server (and suppose that doesn't happen, because maybe I lost connection and the server hasn't noticed yet). As far as I'm aware, ZNC supports nothing like a `$nick` token, so perform can't guarantee that it will work. <!-- github-comment-id:312986967 -->
Author
Owner

@lavacano201014 take a look at https://wiki.znc.in/Perform

@lavacano201014 take a look at https://wiki.znc.in/Perform <!-- github-comment-id:313001830 -->
Author
Owner

@Mikaela what's wrong with using perform module?

@Mikaela what's wrong with using perform module? <!-- github-comment-id:313002026 -->
Author
Owner

I think perform is more of an ugly hack and that there is a mismatch with ZNC supporting default channel modes while forgetting that user modes are also a thing.

I think perform is more of an ugly hack and that there is a mismatch with ZNC supporting default channel modes while forgetting that user modes are also a thing. <!-- github-comment-id:313176071 -->
Author
Owner

The problem with this method is that it would only work if my nick happened to be "lavacano" after znc's finished authenticating to the server (and suppose that doesn't happen, because maybe I lost connection and the server hasn't noticed yet). As far as I'm aware, ZNC supports nothing like a $nick token, so perform can't guarantee that it will work.

https://wiki.znc.in/Perform#Examples currently lists

/msg *perform add mode %nick% +w

so I think that limitation's been lifted?

Still, a usermode text box in webadmin would be much appreciated.

> The problem with this method is that it would only work if my nick happened to be "lavacano" after znc's finished authenticating to the server (and suppose that doesn't happen, because maybe I lost connection and the server hasn't noticed yet). As far as I'm aware, ZNC supports nothing like a $nick token, so perform can't guarantee that it will work. https://wiki.znc.in/Perform#Examples currently lists ``` /msg *perform add mode %nick% +w ``` so I think that limitation's been lifted? Still, a usermode text box in webadmin would be much appreciated. <!-- github-comment-id:635149738 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#667