Dont send empty whois results to the client
This commit is contained in:
parent
0689c74101
commit
a084e6d0af
3 changed files with 31 additions and 31 deletions
|
@ -201,7 +201,9 @@ func (i *ircHandler) whoisChannels(msg *irc.Message) {
|
|||
}
|
||||
|
||||
func (i *ircHandler) whoisEnd(msg *irc.Message) {
|
||||
i.session.sendJSON("whois", i.whois)
|
||||
if i.whois.Nick != "" {
|
||||
i.session.sendJSON("whois", i.whois)
|
||||
}
|
||||
i.whois = WhoisReply{}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue