Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Identifying to NickServ

Mikaela Suomalainen edited this page Aug 30, 2017 · 3 revisions

There are at least two methods for identifying TeleIRC to NickServ.

SASL PLAIN

RECOMMENDED as this way the bot is surely identified before joining any channels as it gets identified before non-operator users can even see it being connected.

In config.ircOptions specify userName, set sasl to true and add the password to the end.

For example:

config.ircOptions = {
     userName: 'NickServ-Account',
     realName: 'TeleIRC',
     port: 6697,
     localAddress: null,
     showErrors: true,
     autoRejoin: true,
     autoConnect: true,
     channels: [], // auto generated, do not touch
     secure: true,
     selfSigned: false,
     certExpired: false,
     floodProtection: true,
     floodProtectionDelay: 1000,
     sasl: true,
     stripColors: true,
     channelPrefixes: '&#!',
     messageSplit: 512,
     encoding: '',
     password: 'ThePassw0rdShouldNotReadInTheWiki'
};

It's recommended to use SSL (like in this example, port: 6697 & secure: true, so the password isn't sent to the IRC server in plain text.

NICKSERV IDENTIFY

Have config.ircPerformCmds be the following:

config.ircPerformCmds = ['NICKSERV identify username password'];

Alternatively to execute two commands on connect:

config.ircPerformCmds = ['NICKSERV identify USERNAME PASSWORD', 'NICKSERV regain BOTNICK'];

Notes:

  • NICKSERV is generally an server side alias configured in IRC server config file and it checks that NickServ is actual IRC service instead of being random user who has managed to take the nick due to server misconfiguration.
  • REGAIN is Atheme IRC Services command for disconnecting the user using the target nick and changing your nick into it.
Clone this wiki locally