mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-14 07:59:31 +01:00
fix #1251
This commit is contained in:
parent
fda23264ad
commit
3bcf67b956
@ -129,7 +129,8 @@ func fixupNickEqualsAccount(client *Client, rb *ResponseBuffer, config *Config)
|
|||||||
if !client.registered {
|
if !client.registered {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if performNickChange(client.server, client, client, rb.session, client.AccountName(), rb) != nil {
|
err := performNickChange(client.server, client, client, rb.session, client.AccountName(), rb)
|
||||||
|
if err != nil && err != errNoop {
|
||||||
client.server.accounts.Logout(client)
|
client.server.accounts.Logout(client)
|
||||||
nsNotice(rb, client.t("A client is already using that account; try logging out and logging back in with SASL"))
|
nsNotice(rb, client.t("A client is already using that account; try logging out and logging back in with SASL"))
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user