From 4ab15e865571f78cd8ea22c47a1a3b7d3372a786 Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 12 Oct 2009 20:23:26 +0000 Subject: 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 --- include/base.h | 4 ++-- include/modules.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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); }; -- cgit v1.2.3