Fix CHANSERV OP

This commit is contained in:
Daniel Oaks 2018-04-01 09:33:58 +10:00
parent a67dfe37ca
commit 46c98c2cf5
1 changed files with 2 additions and 2 deletions

View File

@ -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
}