|
@@ -562,16 +562,22 @@ func (msg *WhoCommand) HandleServer(server *Server) {
|
562
|
562
|
mask := string(msg.mask)
|
563
|
563
|
if mask == "" {
|
564
|
564
|
for _, channel := range server.channels {
|
565
|
|
- whoChannel(client, channel)
|
|
565
|
+ for member := range channel.members {
|
|
566
|
+ if !client.flags[Invisible] {
|
|
567
|
+ client.RplWhoReply(channel, member)
|
|
568
|
+ }
|
|
569
|
+ }
|
566
|
570
|
}
|
567
|
571
|
} else if IsChannel(mask) {
|
568
|
572
|
channel := server.channels[mask]
|
569
|
573
|
if channel != nil {
|
570
|
|
- whoChannel(client, channel)
|
|
574
|
+ for member := range channel.members {
|
|
575
|
+ client.RplWhoReply(channel, member)
|
|
576
|
+ }
|
571
|
577
|
}
|
572
|
578
|
} else {
|
573
|
579
|
mclient := server.clients[mask]
|
574
|
|
- if mclient != nil && !mclient.flags[Invisible] {
|
|
580
|
+ if mclient != nil {
|
575
|
581
|
client.RplWhoReply(nil, mclient)
|
576
|
582
|
}
|
577
|
583
|
}
|