fix whois reply

This commit is contained in:
Jeremy Latt 2014-02-20 20:47:05 -08:00
parent e1c4c8e8cc
commit c1edddb9a1
2 changed files with 9 additions and 6 deletions

View file

@ -526,12 +526,12 @@ func (m *WhoisCommand) HandleServer(server *Server) {
continue
}
client.RplWhoisUser(mclient)
if client.flags[Operator] {
if mclient.flags[Operator] {
client.RplWhoisOperator(mclient)
}
client.RplWhoisIdle(mclient)
client.MultilineReply(client.WhoisChannelsNames(), RPL_WHOISCHANNELS,
"%s :%s", client.Nick())
client.MultilineReply(mclient.WhoisChannelsNames(), RPL_WHOISCHANNELS,
"%s :%s", mclient.Nick())
client.RplEndOfWhois()
}
}