mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +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) {
|
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
|
loginSuccessful := false
|
||||||
|
|
||||||
username := params[0]
|
username := params[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user