Skip to content

bot.js: enable autoRenick by default #302

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

Merged
merged 1 commit into from
Sep 18, 2017

Conversation

hemberger
Copy link
Contributor

When the client reconnects to IRC after a timeout, the bot nickname
is often still in use (the client receives an err_nicknameinuse
message), and the bot is given an alternate nickname by the server.
In this case, it is almost always desirable to try to change the
nickname back to the configured nickname, so we enable autoRenick
by default.

NOTE: autoRenick can be disabled by specifying autoRenick: false
in ircOptions in the discord-irc configuration file, or the
behavior can be modified with the renickCount and renickDelay
options. See the node-irc documentation for more details.

When the client reconnects to IRC after a timeout, the bot nickname
is often still in use (the client receives an `err_nicknameinuse`
message), and the bot is given an alternate nickname by the server.
In this case, it is almost always desirable to try to change the
nickname back to the configured nickname, so we enable `autoRenick`
by default.

NOTE: `autoRenick` can be disabled by specifying `autoRenick: false`
in `ircOptions` in the discord-irc configuration file, or the
behavior can be modified with the `renickCount` and `renickDelay`
options. See the node-irc documentation for more details.
@coveralls
Copy link

coveralls commented Sep 17, 2017

Coverage Status

Coverage remained the same at 99.254% when pulling eaa2ce9 on hemberger:autorenick into c0a4133 on reactiflux:master.

@Throne3d
Copy link
Collaborator

Throne3d commented Sep 17, 2017

I agree that this is a good idea, since users of this bot probably expect it to retain the nickname they gave it. It's not enabled in the upstream library by default, but makes sense (at least in my mind) for it to be enabled in discord-irc.

Assuming @ekmartin is okay with it I think this should merge. Thanks!

@ekmartin
Copy link
Member

Agreed!

@ekmartin ekmartin merged commit 8bf36dd into reactiflux:master Sep 18, 2017
@hemberger hemberger deleted the autorenick branch September 18, 2017 14:47
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.

4 participants