From a5f7aac2953e94e49b93e9195ae8d4dccba46f6d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 3 Jan 2022 16:50:06 +0000 Subject: Replace anope_{final,override} with their C++11 equivalent. --- docs/EVENTS | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'docs/EVENTS') diff --git a/docs/EVENTS b/docs/EVENTS index 54e9c87a5..ba570289b 100644 --- a/docs/EVENTS +++ b/docs/EVENTS @@ -22,13 +22,10 @@ Anope Internal Events The full list of functions and parameters are in modules.h. In this case, you would be overriding OnJoinChannel() and OnPartChannel() like so: - void OnJoinChannel(User *u, Channel *c) anope_override { } - void OnPartChannel(User *u, Channel *c) anope_override { } + void OnJoinChannel(User *u, Channel *c) override { } + void OnPartChannel(User *u, Channel *c) override { } Some of these event overrides can be used to prevent or allow things to happen that would normally not be allowed or denied. You can also use ModuleManager (not explained here) to set control which order the modules are queried (when multiple modules hook to the same event). - - The "anope_override" identifier is for compatibility with C++11. - Its usage is highly recommended. -- cgit