From 86775e2e98f55b3b88befe2daff0ca23f02f3155 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:49:36 +0000 Subject: ModResult conversion: Change return type of all module functions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_hideoper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_hideoper.cpp') diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index be4de8f8d..b19ecb97c 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_hideoper.cpp @@ -70,21 +70,21 @@ class ModuleHideOper : public Module return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION); } - int OnWhoisLine(User* user, User* dest, int &numeric, std::string &text) + ModResult OnWhoisLine(User* user, User* dest, int &numeric, std::string &text) { /* Dont display numeric 313 (RPL_WHOISOPER) if they have +H set and the * person doing the WHOIS is not an oper */ if (numeric != 313) - return 0; + return MOD_RES_PASSTHRU; if (!dest->IsModeSet('H')) - return 0; + return MOD_RES_PASSTHRU; if (!user->HasPrivPermission("users/auspex")) - return 1; + return MOD_RES_DENY; - return 0; + return MOD_RES_PASSTHRU; } }; -- cgit v1.2.3