NAMES returning unknown command

Did you request the CAP of membership before joining the channel?

It seems you are joining before the ACK of the CAP

So, password, login, CAP, check you got a ACK, and then join.

Though from your log it seems fine.

If the channel is over 1000 people, you won’t get a thing regardless of CAP…