View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006107 | unreal | ircd | public | 2022-05-20 12:17 | 2022-05-22 19:16 |
Reporter | musk | Assigned To | syzop | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | no change required | ||
Summary | 0006107: Whois | ||||
Description | Hi, I've found out that the whois command if you do /whois nick nick il will display information even if you have this: set { whois-details { basic { everyone none; self none; oper full; } It work with /whois nick. but if i use "/whois nick nick" it will display the whois normally. Is this a bug thing or is normal? Also, the param: max-targets-per-command { whois 1; } is not working properly i think since i can do /whois nick nick without problem. | ||||
Tags | No tags attached. | ||||
3rd party modules | |||||
|
This is normal because "/whois nick nick" is handled by the server the user with the specified nick is on, and not the local server. Therefore the setting in question needs to be applied to all servers for consistent behaviour across the network. With regard to targets, the syntax of the whois command is "WHOIS [<server>] <nick>" but supplying a nick in place of server works due to the way the param is handled. The <server> param means "ask the specified server for the WHOIS response and supplying a nick in place of <server> results in asking the server that nick is on. So in both cases the additional nick ISNT counted as a target to begin with. |
|
https://github.com/unrealircd/unrealircd/blob/unreal60_dev/src/modules/whois.c#L308 if (parc > 2) { if (hunt_server(client, recv_mtags, "WHOIS", 1, parc, parv) != HUNTED_ISME) return; parv[1] = parv[2]; } Im so confused. |
|
According to this, https://datatracker.ietf.org/doc/html/rfc1459#section-4.5.2 If I use "/WHOIS musk musk" should it give me an error? Since musk is not a server parameter. |
|
I figure it out, it was a pylink user that i was using /whois nick nick. Strange fact if i use /whois nick on the same user (pylink one) whois-details does block, only /whois nick nick show details. |
|
'/whois nick' is handled by the local server (unrealircd) '/whois nick nick' as Jobe explained, is handled by the target server (pylink in this case) |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-05-20 12:17 | musk | New Issue | |
2022-05-20 12:23 | Jobe | Note Added: 0022490 | |
2022-05-20 12:47 | musk | Note Added: 0022491 | |
2022-05-20 12:56 | musk | Note Added: 0022492 | |
2022-05-20 14:09 | musk | Note Added: 0022493 | |
2022-05-22 19:16 | syzop | Assigned To | => syzop |
2022-05-22 19:16 | syzop | Status | new => closed |
2022-05-22 19:16 | syzop | Resolution | open => no change required |
2022-05-22 19:16 | syzop | Note Added: 0022496 |