mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
Fix CHANSERV OP
This commit is contained in:
parent
a67dfe37ca
commit
46c98c2cf5
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue