Skip to content
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

[FIX] Contextual errors for this and RegExp declarations in IRC module #8656

Merged
merged 8 commits into from
Dec 5, 2017

Conversation

Pharserror
Copy link
Contributor

@RocketChat/core

Should Close #6902 and #7412
I say Should because I have not been able to deploy this remotely and have only tested the RC fixes locally.

I was getting several "this.someFunction is undefined" errors after enabling the IRC plugin via the admin panel in Chrome 61. I fixed these context errors by binding this to the functions that were giving the undefined message in the constructor.
Also, there are several RegExp's that were declared such that the functions they were made to trigger were not being triggered. I changed the declarations and now I am seeing messages.

@CLAassistant
Copy link

CLAassistant commented Oct 26, 2017

CLA assistant check
All committers have signed the CLA.

@rodrigok rodrigok added this to the 0.60.0 milestone Oct 28, 2017
@@ -44,10 +44,13 @@ class IrcClient {
this.socket.setNoDelay;
this.socket.setEncoding('utf-8');
this.socket.setKeepAlive(true);
this.connect = this.connect.bind(this);
this.onConnect = this.onConnect.bind(this);
Copy link
Contributor

@graywolf336 graywolf336 Nov 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm unless I'm missing something, doesn't this get overwrote by the next line?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp, I was missing something. 🙈 so never mind!

Copy link
Contributor Author

@Pharserror Pharserror Nov 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@Pharserror
Copy link
Contributor Author

Not sure if the failing test is because of my changes. Can we run the Travis CI build again?

@rodrigok
Copy link
Member

rodrigok commented Dec 4, 2017

@Pharserror we moved to CircleCI, everything passed, I just updated your branch with our develop branch to run the CI again.

@rodrigok rodrigok merged commit c30946b into RocketChat:develop Dec 5, 2017
This was referenced Dec 5, 2017
@Pharserror
Copy link
Contributor Author

👌

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.

None yet

4 participants