diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-29 21:43:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-29 21:43:34 +0000 |
commit | 3ba6fa6d7f81cc1c20a3ad4a7d2aa9521e9b36a8 (patch) | |
tree | ff08611cfb296239a377b1100168526882d69751 /src/modules/m_opermodes.cpp | |
parent | 4e0b300c989087428e78c624437c8c2596d0525a (diff) |
Created OnPostOper that can be gauranteed to be called *after* opering (by ALL modules) is done
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2973 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_opermodes.cpp')
-rw-r--r-- | src/modules/m_opermodes.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index a49cb34e8..c7ca62a69 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -40,7 +40,13 @@ class ModuleModesOnOper : public Module void Implements(char* List) { - List[I_OnOper] = 1; + List[I_OnPostOper] = List[I_OnRehash] = 1; + } + + virtual void OnRehash(std::string parameter) + { + delete Conf; + Conf = new ConfigReader; } virtual ~ModuleModesOnOper() @@ -53,7 +59,7 @@ class ModuleModesOnOper : public Module return Version(1,0,0,1,VF_VENDOR); } - virtual void OnOper(userrec* user, std::string opertype) + virtual void OnPostOper(userrec* user, std::string opertype) { // whenever a user opers, go through the oper types, find their <type:modes>, // and if they have one apply their modes. The mode string can contain +modes |