Wow, I've rewritten the hook system almost completely. But it works! I just hope I didn't make some stupid mistake in there, go ahead and test it.
Don't forget, the recommended way of adding hooks is
I'll update the HookNotify and the Core plugins for the new API now.
Don't forget, the recommended way of adding hooks is
cPluginManager.AddHook(HOOK_TYPE, CallbackFunction);Note the dot instead of a colon, the AddHook function is "static" - it doesn't need a cPluginManager instance (since there's only one anyway). Colon will be accepted, too, but is deprecated.
I'll update the HookNotify and the Core plugins for the new API now.