mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-26 05:49:25 +01:00
fix spurious error message
This commit is contained in:
parent
ecf945038f
commit
80aa77372b
@ -114,7 +114,7 @@ func (am *AccountManager) buildNickToAccountIndex() {
|
|||||||
err := json.Unmarshal([]byte(rawPrefs), &prefs)
|
err := json.Unmarshal([]byte(rawPrefs), &prefs)
|
||||||
if err == nil && prefs.NickEnforcement != NickEnforcementOptional {
|
if err == nil && prefs.NickEnforcement != NickEnforcementOptional {
|
||||||
accountToMethod[account] = prefs.NickEnforcement
|
accountToMethod[account] = prefs.NickEnforcement
|
||||||
} else {
|
} else if err != nil {
|
||||||
am.server.logger.Error("internal", "corrupt account creds", account)
|
am.server.logger.Error("internal", "corrupt account creds", account)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user