diff options
| author | 2021-04-04 23:42:15 +0100 | |
|---|---|---|
| committer | 2021-04-04 23:42:15 +0100 | |
| commit | 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch) | |
| tree | f5a81d03f572392e7547d58f979fdd488de6ff0b /include/modules.h | |
| parent | Remove the unused ExitCodes array. (diff) | |
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/modules.h b/include/modules.h index c032e0aa3..8560f45c8 100644 --- a/include/modules.h +++ b/include/modules.h @@ -145,7 +145,7 @@ class ModResult ServerInstance->Logs.Log("MODULE", LOG_DEFAULT, "Exception caught: " + modexcept.GetReason()); \ } \ } \ -} while (0); +} while (0) /** * Custom module result handling loop. This is a paired macro, and should only @@ -330,11 +330,6 @@ class CoreExport Module : public Cullable, public usecountbase */ Cullable::Result Cull() override; - /** Default destructor. - * destroys a module class - */ - virtual ~Module() = default; - /** Retrieves link compatibility data for this module. * @param data The location to store link compatibility data. */ @@ -844,10 +839,8 @@ class CoreExport Module : public Cullable, public usecountbase * Return 1 from this function to block the mode character from being processed entirely. * @param user The user who is sending the mode * @param chan The channel the mode is being sent to (or NULL if a usermode) - * @param mh The mode handler for the mode being changed - * @param param The parameter for the mode or an empty string - * @param adding true of the mode is being added, false if it is being removed - * @return ACR_DENY to deny the mode, ACR_DEFAULT to do standard mode checking, and ACR_ALLOW + * @param change Information regarding the mode change. + * @return MOD_RES_DENY to deny the mode, MOD_RES_DEFAULT to do standard mode checking, and MOD_RES_ALLOW * to skip all permission checking. Please note that for remote mode changes, your return value * will be ignored! */ |
