diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-02 22:58:47 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-02 22:58:47 +0000 |
commit | f5c3e3782bfeb3ffb634f86eadb8ffecbc36f176 (patch) | |
tree | a7f04b0d1f5d15b1e477bd0af477f53795b338d1 /src/modules | |
parent | 455b5993eb00db383b17a928ea54be5e5ddf3600 (diff) |
Add param 'opername' to event OnPostOper. This will help make a (slightly nicer) version of dz's patch to allow modes in <oper>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8615 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_operflood.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_operjoin.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_opermodes.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_operflood.cpp b/src/modules/m_operflood.cpp index 807472b19..1b704cc22 100644 --- a/src/modules/m_operflood.cpp +++ b/src/modules/m_operflood.cpp @@ -28,7 +28,7 @@ public: return Version(1,1,0,1,VF_VENDOR,API_VERSION); } - void OnPostOper(User* user, const std::string &opertype) + void OnPostOper(User* user, const std::string &opertype, const std::string &opername) { if(!IS_LOCAL(user)) return; diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index c8b4b1eaa..e9379e943 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -70,7 +70,7 @@ class ModuleOperjoin : public Module return Version(1,1,0,1,VF_VENDOR,API_VERSION); } - virtual void OnPostOper(User* user, const std::string &opertype) + virtual void OnPostOper(User* user, const std::string &opertype, const std::string &opername) { if (!IS_LOCAL(user)) return; diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index d46aaef21..6389b029d 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -49,7 +49,7 @@ class ModuleModesOnOper : public Module return Version(1,1,0,1,VF_VENDOR,API_VERSION); } - virtual void OnPostOper(User* user, const std::string &opertype) + virtual void OnPostOper(User* user, const std::string &opertype, const std::string &opername) { // 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 |