mIRC Home    About    Download    Register    News    Help

Print Thread
#258048 06/06/16 10:58 AM
Joined: Apr 2004
Posts: 871
Sat Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
1. On a server that does not support the CAP command at all, such as ircu (QuakeNet), the first time after connecting that the user tries an invalid command, the resulting "421 <command> Unknown command" numeric will be hidden, even if that command is not "CAP". I believe mIRC should only hide the 421 if mIRC has not received a reply to its own CAP request and the command in the 421 is "CAP".

2. On an ircd that does support the CAP command, such as ircd-seven (FreeNode), the output of eg "/cap ls" (returned in the form of another CAP command) will not be shown. I believe that after having connected, mIRC should show the output of the CAP commands to the user somehow.


Saturn, QuakeNet staff
Joined: Dec 2002
Posts: 5,424
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,424
Thanks for your bug report. For the first issue:

Handling the initial CAP command is a little bit tricky because there are four or five ways that different ircds reply to it. For those that support CAP, it is straight-forward. For those that don't, they either do not react at all or they send error messages (either 421 or 451) in different formats. Some error messages contain the command that was used, in which case you can tell whether it was due to CAP, while others do not, in which case all mIRC can do is hide the first error message it sees, assuming that it was due to the CAP command.

I can change the generic method that mIRC uses with Quakenet-type ircds to: if mIRC sends CAP and the ircd does not not support it and the ircd does not send an error message, mIRC waits until after the end of the MOTD and if no error messages have been received, assume that the server will not be sending one and clear the CAP error message check.

For the second issue:

mIRC should probably show the results of CAP on connect as well. I have added this to my to-do list.

Joined: Apr 2004
Posts: 871
Sat Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Sounds good, thank you!


Saturn, QuakeNet staff

Link Copied to Clipboard