mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
OPER: If client's already opered-up, ignore new OPER attempts
This commit is contained in:
parent
cc15ec9d2d
commit
b807f492ed
1 changed files with 4 additions and 0 deletions
|
|
@ -1370,6 +1370,10 @@ func operHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
||||||
client.Send(nil, server.name, ERR_PASSWDMISMATCH, client.nick, "Password incorrect")
|
client.Send(nil, server.name, ERR_PASSWDMISMATCH, client.nick, "Password incorrect")
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if client.flags[Operator] == true {
|
||||||
|
client.Send(nil, server.name, ERR_UNKNOWNERROR, "OPER", "You're already opered-up!")
|
||||||
|
return false
|
||||||
|
}
|
||||||
hash := server.operators[name].Pass
|
hash := server.operators[name].Pass
|
||||||
password := []byte(msg.Params[1])
|
password := []byte(msg.Params[1])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue