IRC operators can use /MODE to do anything they like
This commit is contained in:
parent
d8f874caef
commit
72a60aa55f
10
server.go
10
server.go
@ -396,9 +396,13 @@ func (s *Server) handleEvent(e Event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if cm, ok := channel.modeMap[strings.ToLower(e.client.nick)]; !ok || !cm.operator {
|
if cm, ok := channel.modeMap[strings.ToLower(e.client.nick)]; !ok || !cm.operator {
|
||||||
//Not an operator
|
//Not a channel operator.
|
||||||
e.client.reply(errNoPriv)
|
|
||||||
return
|
//If they're not an irc operator either, they'll fail
|
||||||
|
if !e.client.operator {
|
||||||
|
e.client.reply(errNoPriv)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hasClient := false
|
hasClient := false
|
||||||
|
Loading…
Reference in New Issue
Block a user