1
0
Fork 0
forked from External/ergo
Let halfops change the channel topic
This commit is contained in:
Shivaram Lingamneni 2021-02-05 11:02:31 -05:00
parent 1fad76b906
commit 6f1bc9896b
2 changed files with 6 additions and 6 deletions

View file

@ -1257,7 +1257,7 @@ func (channel *Channel) SetTopic(client *Client, topic string, rb *ResponseBuffe
return
}
if channel.flags.HasMode(modes.OpOnlyTopic) && !channel.ClientIsAtLeast(client, modes.ChannelOperator) {
if channel.flags.HasMode(modes.OpOnlyTopic) && !channel.ClientIsAtLeast(client, modes.Halfop) {
rb.Add(nil, client.server.name, ERR_CHANOPRIVSNEEDED, client.Nick(), channel.Name(), client.t("You're not a channel operator"))
return
}