|
@@ -85,12 +85,8 @@ func parseCallback(spec string, config *AccountConfig) (callbackNamespace string
|
85
|
85
|
func accRegisterHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
86
|
86
|
// clients can't reg new accounts if they're already logged in
|
87
|
87
|
if client.LoggedIntoAccount() {
|
88
|
|
- if server.AccountConfig().Registration.AllowMultiplePerConnection {
|
89
|
|
- server.accounts.Logout(client)
|
90
|
|
- } else {
|
91
|
|
- rb.Add(nil, server.name, ERR_REG_UNSPECIFIED_ERROR, client.nick, "*", client.t("You're already logged into an account"))
|
92
|
|
- return false
|
93
|
|
- }
|
|
88
|
+ rb.Add(nil, server.name, ERR_REG_UNSPECIFIED_ERROR, client.nick, "*", client.t("You're already logged into an account"))
|
|
89
|
+ return false
|
94
|
90
|
}
|
95
|
91
|
|
96
|
92
|
// get and sanitise account name
|