mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-02 00:49:25 +01:00
fix: usernames from ident don't get a ~
This commit is contained in:
parent
4bbba5b478
commit
8438afcc5c
@ -176,9 +176,11 @@ func NewClient(server *Server, conn net.Conn, isTLS bool) {
|
|||||||
resp, err := ident.Query(clientHost, serverPort, clientPort, IdentTimeoutSeconds)
|
resp, err := ident.Query(clientHost, serverPort, clientPort, IdentTimeoutSeconds)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
username := resp.Identifier
|
username := resp.Identifier
|
||||||
err := client.SetNames(username, "")
|
cfusername, err := CasefoldName(username)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
client.Notice(client.t("*** Found your username"))
|
client.Notice(client.t("*** Found your username"))
|
||||||
|
client.username = username
|
||||||
|
client.usernameCasefolded = cfusername
|
||||||
// we don't need to updateNickMask here since nickMask is not used for anything yet
|
// we don't need to updateNickMask here since nickMask is not used for anything yet
|
||||||
} else {
|
} else {
|
||||||
client.Notice(client.t("*** Got a malformed username, ignoring"))
|
client.Notice(client.t("*** Got a malformed username, ignoring"))
|
||||||
|
Loading…
Reference in New Issue
Block a user