mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 03:49:27 +01:00
Fix CHANSERV OP
This commit is contained in:
parent
a67dfe37ca
commit
46c98c2cf5
@ -72,8 +72,8 @@ func (server *Server) chanservOpHandler(client *Client, channelName, clientToOp
|
||||
}
|
||||
|
||||
channelInfo := server.channels.Get(channelKey)
|
||||
if channelInfo == nil || !channelInfo.ClientIsAtLeast(client, modes.ChannelOperator) {
|
||||
rb.ChanServNotice(client.t("You must be an oper on the channel to op on it"))
|
||||
if channelInfo == nil {
|
||||
rb.ChanServNotice(client.t("Channel does not exist"))
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user