erc-nick-popup-alist

erc-nick-popup-alist is a variable defined in `erc-button.el'.
Its value is shown below.

Documentation:
An alist of possible actions to take on a nickname.
An entry looks like ("Action" . SEXP) where SEXP is evaluated with
the variable `nick' bound to the nick in question.

Examples:
("DebianDB" .
(shell-command
(format
"ldapsearch -x -P 2 -h db.debian.org -b dc=debian,dc=org ircnick=%s"
nick)))

You can customize this variable.

Value:

(("DeOp" erc-cmd-DEOP nick) ("Kick" erc-cmd-KICK (concat nick " " (read-from-minibuffer (concat "Kick " nick ", reason: ")))) ("Msg" erc-cmd-MSG (concat nick " " (read-from-minibuffer (concat "Message to " nick ": ")))) ("Op" erc-cmd-OP nick) ("Query" erc-cmd-QUERY nick) ("Whois" erc-cmd-WHOIS nick) ("Lastlog" erc-cmd-LASTLOG nick))