forked from External/ergo
remove redundant oper check from DEBUG
This commit is contained in:
parent
b139386391
commit
af256fccd3
2 changed files with 2 additions and 9 deletions
|
|
@ -477,14 +477,7 @@ func csHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Respon
|
|||
|
||||
// DEBUG <subcmd>
|
||||
func debugHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *ResponseBuffer) bool {
|
||||
param, err := Casefold(msg.Params[0])
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
if !client.HasMode(modes.Operator) {
|
||||
return false
|
||||
}
|
||||
param := strings.ToUpper(msg.Params[0])
|
||||
|
||||
switch param {
|
||||
case "GCSTATS":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue