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

send nick change from irc to discord #235

Merged
merged 6 commits into from
May 16, 2017
Merged

Conversation

rschoebel
Copy link

anoy discord user with the nick changes of the irc users

Copy link
Member

@ekmartin ekmartin left a comment

Choose a reason for hiding this comment

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

This looks good to me. @Throne3d - what do you think?

lib/bot.js Outdated
@@ -125,6 +125,20 @@ class Bot {
this.sendToDiscord(author, to, `*${text}*`);
});

this.ircClient.on('nick', (oldnick, newnick, channels) => {
Copy link
Member

Choose a reason for hiding this comment

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

oldNick and newNick maybe? Nitpick :)

@Throne3d
Copy link
Collaborator

The only thing I would be wary about is if the library sends the list of channels containing every channel, like it does for quit, in which case this (I think) will send to all channels, even ones the user isn't in.

I haven't actually tried it out in practice yet so this might be a nonissue.

edited tests to reflect these changes
@coveralls
Copy link

coveralls commented May 16, 2017

Coverage Status

Coverage increased (+0.1%) to 98.45% when pulling fd88a99 on Junky2k:master into fe37ec4 on reactiflux:master.

@Throne3d
Copy link
Collaborator

This should work fine, I think.

@ekmartin ekmartin merged commit 5453e45 into reactiflux:master May 16, 2017
@ekmartin
Copy link
Member

Thanks!

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