Skip to content

Ensure display name changes are logged to the user-log#505

Merged
MarkKoz merged 2 commits into
masterfrom
user-log-display-name-changes
Oct 9, 2019
Merged

Ensure display name changes are logged to the user-log#505
MarkKoz merged 2 commits into
masterfrom
user-log-display-name-changes

Conversation

@SebastiaanZ
Copy link
Copy Markdown
Contributor

Recently, we discovered that not all display name changes were logged to the #user-log channel. This problem was caused by the old_value or the new_value showing up as None when a user sets or removes a guild-specific nickname. Since we ignore changes in which either the old_value or the new_value is None, we did not log these None->nick or nick->None events.

As we are mainly interested in the display name of the user, and the display name is either equal to the user's guild-specific nickname, if they have one, or otherwise their username, I made the following changes:

  • Add logging of changes in the display names of members.

  • Ignore nick-specific changes completely, since these changes are already captured by the changes in the display name we now log.

The new display name logs will show up in #user-log as this:

display name logging

This PR closes #489

#489

Recently, we discovered that not all display name changes were logged
to the #user-log channel. This problem was caused by the `old_value`
or the `new_value` showing up as `None` when a user sets or removes a
guild-specific nickname. Since we ignore changes where one of the two
values is `None`, we did not log these `None->nick` or `nick->None`
events.

Since we are mainly interested in the display name of the user, and
the display name is equal to the user's guild-specific nickname if
they have set one and otherwise their username, I made the following
changes:

- Add logging of changes in the display names of members.

- Ignore nick-specific changes completely, since these changes are
  already captured by the changes in the display name we now log.

This closes #489
@SebastiaanZ SebastiaanZ added t: bug Something isn't working a: moderation Related to community moderation functionality: (moderation, defcon, verification) labels Oct 8, 2019
@MarkKoz MarkKoz merged commit f7d727c into master Oct 9, 2019
@MarkKoz MarkKoz deleted the user-log-display-name-changes branch October 9, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: moderation Related to community moderation functionality: (moderation, defcon, verification) t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nickname Changes Not Consistently Logged to #user-log

3 participants