X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodules.h;h=de418a785777971b74063b16a6aba5875a0a411a;hb=9ea8ecfaf395955a4e58c743c2f9e35a26528039;hp=a3a0aadb3ed79a5c9049b99cb26585f1b1ad5cd6;hpb=a638de7715b55c9a09e51fd5d42d97f05d966da7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules.h b/include/modules.h index a3a0aadb3..de418a785 100644 --- a/include/modules.h +++ b/include/modules.h @@ -926,6 +926,12 @@ class CoreExport Module : public classbase, public usecountbase */ virtual void OnServiceDel(ServiceProvider& service); + /** Called whenever a message is about to be written to a user. + * @param user The user who is having a message sent to them. + * @param msg The message which is being written to the user. + * @return MOD_RES_ALLOW to explicitly allow the message to be sent, MOD_RES_DENY to explicitly + * deny the message from being sent, or MOD_RES_PASSTHRU to let another module handle the event. + */ virtual ModResult OnUserWrite(LocalUser* user, ClientProtocol::Message& msg); };