diff --git a/irc/handlers.go b/irc/handlers.go index 47af0c4b..599a6260 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -199,8 +199,8 @@ func sendSuccessfulSaslAuth(client *Client, rb *ResponseBuffer, forNS bool) { if forNS { rb.Notice(fmt.Sprintf(client.t("You're now logged in as %s"), client.AccountName())) } else { - rb.Add(nil, client.server.name, RPL_LOGGEDIN, client.nick, client.nickMaskString, account, fmt.Sprintf("You are now logged in as %s", account)) - rb.Add(nil, client.server.name, RPL_SASLSUCCESS, client.nick, client.t("SASL authentication successful")) + rb.Add(nil, client.server.name, RPL_LOGGEDIN, client.nick, client.nickMaskString, account, fmt.Sprintf(client.t("You are now logged in as %s"), account)) + rb.Add(nil, client.server.name, RPL_SASLSUCCESS, client.nick, client.t("Authentication successful")) } // dispatch account-notify diff --git a/irc/nickserv.go b/irc/nickserv.go index 289fbf02..226866f2 100644 --- a/irc/nickserv.go +++ b/irc/nickserv.go @@ -408,13 +408,13 @@ func nsRegisterHandler(server *Server, client *Client, command, params string, r // details could not be stored and relevant numerics have been dispatched, abort if err != nil { - errMsg := "Could not register" + errMsg := client.t("Could not register") if err == errCertfpAlreadyExists { - errMsg = "An account already exists for your certificate fingerprint" + errMsg = client.t("An account already exists for your certificate fingerprint") } else if err == errAccountAlreadyRegistered { - errMsg = "Account already exists" + errMsg = client.t("Account already exists") } - nsNotice(rb, client.t(errMsg)) + nsNotice(rb, errMsg) return } }