Sfoglia il codice sorgente

Merge pull request #914 from slingamn/issue908_forreal

fix #908
tags/v2.1.0-rc1
Shivaram Lingamneni 4 anni fa
parent
commit
057143f8b2
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      irc/nickname.go

+ 1
- 1
irc/nickname.go Vedi File

@@ -45,7 +45,7 @@ func performNickChange(server *Server, client *Client, target *Client, session *
45 45
 	} else if err == errNickAccountMismatch {
46 46
 		// this used to use ERR_NICKNAMEINUSE, but it displayed poorly in some clients;
47 47
 		// ERR_UNKNOWNERROR at least has a better chance of displaying our error text
48
-		rb.Add(nil, server.name, ERR_UNKNOWNERROR, currentNick, "NICK", client.t(err.Error()))
48
+		rb.Add(nil, server.name, ERR_UNKNOWNERROR, currentNick, "NICK", client.t("You must use your account name as your nickname"))
49 49
 	} else if err == errNickMissing {
50 50
 		rb.Add(nil, server.name, ERR_NONICKNAMEGIVEN, currentNick, client.t("No nickname given"))
51 51
 	} else if err != nil {

Loading…
Annulla
Salva