Skip to content

Commit

Permalink
main: /rename should not complain when symbol is set and name is unch…
Browse files Browse the repository at this point in the history
…anged
  • Loading branch information
shazow committed Aug 3, 2020
1 parent 7461ca8 commit 4fe4374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,9 +669,9 @@ func (h *Host) InitCommands(c *chat.Commands) {

oldID := member.ID()
newID := sanitize.Name(args[1])
if newID == oldID {
if newID == oldID && !symbolSet {
return errors.New("new name is the same as the original")
} else if newID == "" && symbolSet {
} else if (newID == "" || newID == oldID) && symbolSet {
if member.User.OnChange != nil {
member.User.OnChange()
}
Expand Down

0 comments on commit 4fe4374

Please sign in to comment.