mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
forbid logging in twice via nickserv
This commit is contained in:
parent
3db6c9472b
commit
d6494957a4
@ -238,6 +238,11 @@ func nsLoginThrottleCheck(client *Client, rb *ResponseBuffer) (success bool) {
|
||||
}
|
||||
|
||||
func nsIdentifyHandler(server *Server, client *Client, command string, params []string, rb *ResponseBuffer) {
|
||||
if client.LoggedIntoAccount() {
|
||||
nsNotice(rb, client.t("You're already logged into an account"))
|
||||
return
|
||||
}
|
||||
|
||||
loginSuccessful := false
|
||||
|
||||
username := params[0]
|
||||
|
Loading…
Reference in New Issue
Block a user