diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/base.h | 4 | ||||
-rw-r--r-- | include/modules.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/base.h b/include/base.h index f41ea07d2..2bc0e4a6a 100644 --- a/include/base.h +++ b/include/base.h @@ -89,8 +89,8 @@ class CoreExport reference : public reference_base inline const T& operator*() const { return *value; } inline T* operator->() { return value; } inline T& operator*() { return *value; } - operator bool() const { return value; } - operator T*() const { return value; } + inline operator bool() const { return value; } + inline operator T*() const { return value; } }; /** This class can be used on its own to represent an exception, or derived to represent a module-specific exception. diff --git a/include/modules.h b/include/modules.h index 0a1c759e5..b96e6c703 100644 --- a/include/modules.h +++ b/include/modules.h @@ -105,7 +105,7 @@ struct ModResult { }; /** If you change the module API in any way, increment this value. */ -#define API_VERSION 132 +#define API_VERSION 133 class ServerConfig; @@ -1284,7 +1284,7 @@ class CoreExport Module : public Extensible * @return MOD_RES_DENY to apply the restriction, MOD_RES_ALLOW to bypass * the restriction, or MOD_RES_PASSTHRU to check restriction status normally */ - virtual ModResult OnChannelRestrictionApply(Membership* memb, Channel* chan, const char* restriction); + virtual ModResult OnChannelRestrictionApply(User* user, Channel* chan, const char* restriction); }; |