module: change event module register logic

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>