diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-12 20:23:26 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-12 20:23:26 +0000 |
commit | 4ab15e865571f78cd8ea22c47a1a3b7d3372a786 (patch) | |
tree | 6a9cb24eb92502a6f3153d681ac3f3f5e584d61d /include | |
parent | ee6087e2b463c63d58a37d0f1b611c0893fa35a5 (diff) |
Make OnChannelRestrictionApply take a User* instead of a Membership* [jackmcbarn]
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11858 e03df62e-2008-0410-955e-edbf42e46eb7
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); }; |