3
0
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:
Daniel Oaks 2018-04-01 09:33:58 +10:00
parent a67dfe37ca
commit 46c98c2cf5

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
}