mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
fix #516
This commit is contained in:
parent
99de53264e
commit
34925ce4a7
@ -165,7 +165,6 @@ const (
|
|||||||
ERR_CANNOTSENDRP = "573"
|
ERR_CANNOTSENDRP = "573"
|
||||||
RPL_WHOISSECURE = "671"
|
RPL_WHOISSECURE = "671"
|
||||||
RPL_YOURLANGUAGESARE = "687"
|
RPL_YOURLANGUAGESARE = "687"
|
||||||
RPL_WHOISLANGUAGE = "690"
|
|
||||||
ERR_CHANNAMEINUSE = "692"
|
ERR_CHANNAMEINUSE = "692"
|
||||||
ERR_CANNOTRENAME = "693"
|
ERR_CANNOTRENAME = "693"
|
||||||
RPL_HELPSTART = "704"
|
RPL_HELPSTART = "704"
|
||||||
|
@ -488,14 +488,6 @@ func (client *Client) getWhoisOf(target *Client, rb *ResponseBuffer) {
|
|||||||
rb.Add(nil, client.server.name, RPL_WHOISBOT, cnick, tnick, ircfmt.Unescape(fmt.Sprintf(client.t("is a $bBot$b on %s"), client.server.Config().Network.Name)))
|
rb.Add(nil, client.server.name, RPL_WHOISBOT, cnick, tnick, ircfmt.Unescape(fmt.Sprintf(client.t("is a $bBot$b on %s"), client.server.Config().Network.Name)))
|
||||||
}
|
}
|
||||||
|
|
||||||
tLanguages := target.Languages()
|
|
||||||
if 0 < len(tLanguages) {
|
|
||||||
params := []string{cnick, tnick}
|
|
||||||
params = append(params, client.server.Languages().Codes(tLanguages)...)
|
|
||||||
params = append(params, client.t("can speak these languages"))
|
|
||||||
rb.Add(nil, client.server.name, RPL_WHOISLANGUAGE, params...)
|
|
||||||
}
|
|
||||||
|
|
||||||
if target.certfp != "" && (client.HasMode(modes.Operator) || client == target) {
|
if target.certfp != "" && (client.HasMode(modes.Operator) || client == target) {
|
||||||
rb.Add(nil, client.server.name, RPL_WHOISCERTFP, cnick, tnick, fmt.Sprintf(client.t("has client certificate fingerprint %s"), target.certfp))
|
rb.Add(nil, client.server.name, RPL_WHOISCERTFP, cnick, tnick, fmt.Sprintf(client.t("has client certificate fingerprint %s"), target.certfp))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user