Proposal for new variable-like expand strings #77

Closed
opened 2026-10-05 03:57:32 +02:00 by adam · 2 comments
Owner

Usually ident daemons need to know which string to return for a specific connection, returning the same global string for all for a specific time period can cause on an server with high IRC activity to assign/mix strings from other users.

The solution is to being able to specify the ident daemon exactly for which connection a string must be returned. This is done by specifying this data for each connection:

  • source IP
  • source port
  • destination IP
  • destination port

As can be seen from http://wiki.znc.in/ExpandString this values are not available as expandable variable-like strings.

Specifying this in /msg *identfile setformat ... would just disable the unintentional mixing of user strings. A complete solution would be to make the setformat smarter and being able to loop through all active connections and printing the correct data. Maybe the template engine from webadmin could be used for such flexibility?

Usually ident daemons need to know which string to return for a specific connection, returning the same global string for all for a specific time period can cause on an server with high IRC activity to assign/mix strings from other users. The solution is to being able to specify the ident daemon exactly for which connection a string must be returned. This is done by specifying this data for each connection: - source IP - source port - destination IP - destination port As can be seen from http://wiki.znc.in/ExpandString this values are not available as expandable variable-like strings. Specifying this in `/msg *identfile setformat ...` would just disable the unintentional mixing of user strings. A complete solution would be to make the setformat smarter and being able to loop through all active connections and printing the correct data. Maybe the template engine from webadmin could be used for such flexibility? <!-- github-sync-id:3523828 -->
adam closed this issue 2026-10-05 03:57:32 +02:00
Author
Owner

The ident file is written before we know this information, so it is not possible to use this with identfile.

The ident file is written before we know this information, so it is not possible to use this with identfile. <!-- github-comment-id:4349689 -->
Author
Owner

Oh, this means the ticket is a wontfix...

Oh, this means the ticket is a wontfix... <!-- github-comment-id:4379366 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#77