Module hooks: fixes and an example module.

This commit is contained in:
antirez
2019-10-22 13:26:29 +02:00
parent 94c50314f1
commit cf52e0ad44
4 changed files with 70 additions and 2 deletions

View File

@ -5769,6 +5769,7 @@ void moduleFireServerEvent(uint64_t eid, int subid, void *data) {
if (eid == REDISMODULE_EVENT_CLIENT_CHANGE) {
modulePopulateClientInfoStructure(&civ1,data,
el->event.dataver);
moduledata = &civ1;
}
el->callback(&ctx,el->event,subid,moduledata);
moduleFreeContext(&ctx);