View Issue Details

IDProjectCategoryView StatusLast Update
0005712unrealircdpublic2021-11-01 10:36
Reportersyzop Assigned Tosyzop  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Fixed in Version5.0.9-rc1 
Summary0005712: U6: extendable connect notices
DescriptionIn U4 we changed to an universal format so we no longer needed HCN for BOPM/HOPM.
Nowadays, those are only used by a marginal amount of users (like k4be :D). On the other hand, several users have asked for more information in the format.
Presumably there is a way to still have BOPM/HOPM parse the notice out of the box, while still extending it in a nice way with additional information. Eg:
*** Client connecting: nick (user@hostname) [IP] [class] [secure XYZ] [other stuff] [more other stuff]
Module-wise I would like to see the ability for modules to add parts, such as "Country: NL" (or the long version) and "SASL: accountname", etc.
Something like that would be quite easy in a hook I think. I would suggest to let modules add their string via a string return value, and let the core deal with adding the brackets and concatting the values together.

This feature is just something small but simple that may provide opers with more information, especially when unknown people are connecting or under an attack.
TagsNo tags attached.
3rd party modules

Activities

syzop

2021-03-08 10:54

administrator   ~0021906

Implemented in 5.0.9:

commit 1baf5f9f7d265caa3a47bc2d582a37abf714cad8
Author: Bram Matthys <syzop@vulnscan.org>
Date: Sun Jan 31 18:28:28 2021 +0100

    Show reputation score and some other info in "Client connecting"
    notices to IRCOps and in ircd.log.
    See the release notes for more details.
    
    Module coders:
    You can use HOOKTYPE_CONNECT_EXTINFO to add your own additional
    information as well. See get_connect_extinfo() for inspiration.
    Use nvplist_add() or nvplist_add_fmt() to easily add your info
    to the list.
    
    Module coders II:
    Small note: this moves the sending of the far connect notice
    to /under/ HOOKTYPE_REMOTE_CONNECT instead of /above/.

Issue History

Date Modified Username Field Change
2020-06-17 17:37 syzop New Issue
2020-06-17 17:37 syzop Status new => acknowledged
2020-06-17 17:42 syzop Description Updated
2021-03-08 10:54 syzop Assigned To => syzop
2021-03-08 10:54 syzop Status acknowledged => resolved
2021-03-08 10:54 syzop Resolution open => fixed
2021-03-08 10:54 syzop Fixed in Version => 5.0.9-rc1
2021-03-08 10:54 syzop Note Added: 0021906
2021-11-01 10:36 syzop View Status private => public