1
0
Fork 0
forked from External/ergo

Add 'are supported by this server' to translatable strings

This commit is contained in:
Daniel Oaks 2018-01-23 23:31:29 +10:00
parent 1fae186637
commit ddd7f0dc99
4 changed files with 8 additions and 10 deletions

View file

@ -596,8 +596,10 @@ func (client *Client) LoggedIntoAccount() bool {
// RplISupport outputs our ISUPPORT lines to the client. This is used on connection and in VERSION responses.
func (client *Client) RplISupport() {
translatedISupport := client.t("are supported by this server")
for _, tokenline := range client.server.ISupport().CachedReply {
// ugly trickery ahead
tokenline = append(tokenline, translatedISupport)
client.Send(nil, client.server.name, RPL_ISUPPORT, append([]string{client.nick}, tokenline...)...)
}
}