Skip to content

Commit

Permalink
Catch username changes (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
qaisjp committed Jan 7, 2018
1 parent b03a20a commit 2eb64af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/irc_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (i *ircConnection) JoinChannels() {

func (i *ircConnection) UpdateDetails(discord DiscordUser) {
// if their details haven't changed, don't do anything
if (i.discord.Nick == discord.Nick) && (i.discord.Discriminator == discord.Discriminator) {
if (i.discord.Nick == discord.Nick) && (i.discord.Username == discord.Username) && (i.discord.Discriminator == discord.Discriminator) {
return
}

Expand Down

0 comments on commit 2eb64af

Please sign in to comment.