The plugin or service the event handler function takes as parameter, or null if it doesn't take one.
The event to check.
The IRCEventHandler UDA to check against.
The name of the function being checked.
Whether to assert(0) if an error is detected. If false, the function will output any errors to the terminal and then do nothing.
Implementation of the memory corruption check.
This part can safely be a function instead of a mixin string to share code.