Skip to content

Commit

Permalink
Use the original case of the old channel name in replies
Browse files Browse the repository at this point in the history
  • Loading branch information
hhirtz committed Aug 5, 2020
1 parent d37e2d2 commit 61fa360
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions irc/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2433,6 +2433,8 @@ func renameHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Re
rb.Add(nil, server.name, ERR_NOSUCHCHANNEL, client.Nick(), utils.SafeErrorParam(oldName), client.t("No such channel"))
return false
}
oldName = channel.name

if !(channel.ClientIsAtLeast(client, modes.ChannelOperator) || client.HasRoleCapabs("chanreg")) {
rb.Add(nil, server.name, ERR_CHANOPRIVSNEEDED, client.Nick(), oldName, client.t("You're not a channel operator"))
return false
Expand Down

0 comments on commit 61fa360

Please sign in to comment.