diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:31:23 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-13 20:31:23 +0000 |
commit | 7892c8a0313c50d8138942ff3b112691caf05a2f (patch) | |
tree | 9c0c4a20584c0dca6adbeddec538ff871546dabe /src/modules/m_samode.cpp | |
parent | b4be0c94ab5fb7e5a7a799a195c78de072a5e315 (diff) |
Replace OnAccessCheck with OnPreMode to remove a number of redundant checks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11700 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_samode.cpp')
-rw-r--r-- | src/modules/m_samode.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index e0e751e7b..2a185680d 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -46,19 +46,19 @@ class ModuleSaMode : public Module : Module(Me), cmd(Me, this) { ServerInstance->AddCommand(&cmd); - ServerInstance->Modules->Attach(I_OnAccessCheck, this); + ServerInstance->Modules->Attach(I_OnPreMode, this); } - virtual ~ModuleSaMode() + ~ModuleSaMode() { } - virtual Version GetVersion() + Version GetVersion() { return Version("$Id$", VF_VENDOR, API_VERSION); } - virtual ModResult OnAccessCheck(User* source,User* dest,Channel* channel,int access_type) + ModResult OnPreMode(User* source,User* dest,Channel* channel, const std::vector<std::string>& parameters) { if (cmd.active) return MOD_RES_ALLOW; @@ -68,7 +68,7 @@ class ModuleSaMode : public Module void Prioritize() { Module *override = ServerInstance->Modules->Find("m_override.so"); - ServerInstance->Modules->SetPriority(this, I_OnAccessCheck, PRIORITY_BEFORE, &override); + ServerInstance->Modules->SetPriority(this, I_OnPreMode, PRIORITY_BEFORE, &override); } }; |