File: erc-services.el.html
There are two ways to go about identifying yourself automatically to NickServ with this module. The more secure way is to listen for identify requests from the user NickServ. Another way is to identify yourself to NickServ directly after a successful connection and every time you change your nickname. This method is rather insecure, though, because no checks are made to test if NickServ is the real NickServ for a given network or server.
As a default, ERC has the data for the official nickname services on the networks Austnet, BrasNET, Dalnet, freenode, GalaxyNet, GRnet, Libera.Chat, and Slashnet. You can add more by using M-x customize-variable RET erc-nickserv-alist.
Usage:
Put into your .emacs:
(require 'erc-services)
(erc-services-mode 1)
Add your nickname and NickServ password to erc-nickserv-passwords.
Using the Libera.Chat network as an example:
(setq erc-nickserv-passwords
'((Libera.Chat (("nickname" "password")))))
The default automatic identification mode is autodetection of NickServ
identify requests. Set the variable erc-nickserv-identify-mode(var)/erc-nickserv-identify-mode(fun) if
you'd like to change this behavior. You can also change the way
automatic identification is handled by using:
M-x erc-nickserv-identify-mode
If you'd rather not identify yourself automatically but would like access
to the functions contained in this file, just load this file without
enabling erc-services-mode(var)/erc-services-mode(fun).
Defined variables (9)
erc-auth-source-services-function | Function to retrieve NickServ password from auth-source. |
erc-nickserv-alist | Alist of NickServer details, sorted by network. |
erc-nickserv-identified-hook | Run this hook when NickServ acknowledged successful identification. |
erc-nickserv-identify-mode | The mode which is used when identifying to Nickserv. |
erc-nickserv-passwords | Passwords used when identifying to NickServ automatically. |
erc-prompt-for-nickserv-password | Ask for the password when identifying to NickServ. |
erc-services-mode | Non-nil if Erc-Services mode is enabled. |
erc-services-mode-hook | Hook run after entering or leaving ‘erc-services-mode’. |
erc-use-auth-source-for-nickserv-password | Query auth-source for a password when identifying to NickServ. |