in 1.8 you can bind to the identify and update command with MOD_TAIL to execute your code.
example:
#include "module.h"
int do_on_identify(User *u)
{
/* stop if nick is not identified */
if (!nick_identified(u))
{
return MOD_CONT;
}
/* this is a good place */
/* to add your code */
return MOD_CONT;
}
int AnopeInit(int argc, char **argv)
{
Command *c;
c = createCommand("IDENTIFY", do_on_identify, NULL, -1, -1, -1, -1, -1);
moduleAddCommand(NICKSERV, c, MOD_TAIL);
c = createCommand("ID", do_on_identify, NULL, -1, -1, -1, -1, -1);
moduleAddCommand(NICKSERV, c, MOD_TAIL);
c = createCommand("UPDATE", do_on_identify, NULL, -1, -1, -1, -1, -1);
moduleAddCommand(NICKSERV, c, MOD_TAIL);
return MOD_CONT;
}
Because we have already a working solution I dont see any reason to add an additional event to the update command.