Skip to content

Commit

Permalink
Fix WHOIS reply not respecting a lack of the multi-prefix capability
Browse files Browse the repository at this point in the history
Prior to this commit, RPL_WHOISCHANNELS always contained all channel membership prefixes, even when the client had not enabled the multi-prefix capability. This behaviour predates available commit history. Other ircds only return the highest prefix, as prescribed by the RFCs.
  • Loading branch information
JustAnotherArchivist authored and aaronmdjones committed Jun 11, 2024
1 parent 519d9bc commit 4633665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/m_whois.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
{
send_multiline_item(source_p, "%s%s%s",
hdata_vis.approved ? "" : "!",
find_channel_status(mt, 1),
find_channel_status(mt, IsCapable(source_p, CLICAP_MULTI_PREFIX)),
chptr->chname);
}
}
Expand Down

0 comments on commit 4633665

Please sign in to comment.