erc-nick-changed-functions is a variable defined in `erc.el'.
Its value is
nil
This variable may be risky if used as a file-local variable.
Documentation:
List of functions run when your nick was successfully changed.
Each function should accept two arguments, NEW-NICK and OLD-NICK.
You can customize this variable.