Skip to content

Conversation

@Kingdutch
Copy link
Contributor

The USERSTATE message contains the channel that it's
being sent for but this was not being used. Instead it used
the this.lastJoined variable. However, this internal variable
is only updated after the tracking for moderators is completed.

This results in moderator status being assigned to the wrong
channel and will result in client.isMod returning false when
called in an onJoin handler (or thereafter).

The USERSTATE message contains the channel that it's
being sent for but this was not being used. Instead it used
the `this.lastJoined` variable. However, this internal variable
is only updated after the tracking for moderators is completed.

This results in moderator status being assigned to the wrong 
channel and will result in `client.isMod` returning `false` when 
called in an `onJoin` handler (or thereafter).
@AlcaDesign AlcaDesign merged commit 4bb66c4 into tmijs:master Sep 20, 2020
@AlcaDesign
Copy link
Member

Thanks!

@Kingdutch Kingdutch deleted the patch-1 branch September 22, 2020 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants