-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update draft/rename impl #1223
Update draft/rename impl #1223
Conversation
Thanks so much, this is a huge help! I'll review this soon; I'm going to ask some questions about the "silent" case changes. In general I'm trying to move more towards a setup where clients can treat all server-sent identifiers as opaque byte strings (see #1083 in particular). |
From discussion on ircv3/ircv3-specifications#420, can you ensure the fallback is sent for case changes? |
Still todo: use the stored channel name instead of |
This looks great! Would you mind squashing it yourself? |
irc/handlers.go
Outdated
@@ -2434,21 +2433,23 @@ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sorry, this should use channel.Name()
Link to the new draft PR: <ircv3/ircv3-specifications#420> Changes in the spec: - Use standard replies instead of numerics: <https://github.com/ircv3/ircv3-specifications/pull/420/files#diff-70e90beef48dc9cf5d784d1e179ea822R44> - Allow RENAME to a different case: <https://github.com/ircv3/ircv3-specifications/pull/420/files#diff-70e90beef48dc9cf5d784d1e179ea822R42> This commit makes oragono send the PART-JOIN fallback even on case-only changes. This is so that clients don't have to worry about oragono's UTF8 casefolding. See the following comments for further info: <ircv3/ircv3-specifications#420 (comment)> Misc fixes: - Remove unused variable, - Add missing calls to utils.SafeErrorParam, - Don't fill replies with the user-provided "oldName", for the same reason as sending the PART-JOIN fallback.
The cap name is now draft/channel-rename |
Fixes #1122
New draft: ircv3/ircv3-specifications#420
Former draft: ircv3/ircv3-specifications#308
Quoting the new draft commit message:
Feel free to squash before merging.