solanum
solanum copied to clipboard
Add filter support to WHOX
Currently it's not possible to issue a WHO command against a single nickname as the query will also match against the realname field. There's a further extenion to WHO which solves this by prepending one or more filter specifiers to the WHOX field selector.
o — specifies to only list IRC Operators.
n — match nicknames.
u — match usernames ("idents").
h — match hostnames.
i — match numeric IP addresses.
r — match realnames.
s — match server names.
a — match user accounts.
References: http://faerion.sourceforge.net/doc/irc/whox.var https://github.com/quakenet/snircd/blob/master/doc/readme.who
From IRC, the enhanced SCAN proposal may also solve this, but is oper only
https://github.com/solanum-ircd/solanum/issues/7
My thought was that scan would not be oper-only, as OFTC's enhanced /who is not oper-only. It would offer reduced functionality based on privileges, of course.
Enhancing WHO is likely a better way to go, as SCAN was a non-standard hyperion/charybdis extension (and originally written for debugging the ircd, but then freenode staff started using it).