summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-02 22:58:47 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-02 22:58:47 +0000
commitf5c3e3782bfeb3ffb634f86eadb8ffecbc36f176 (patch)
treea7f04b0d1f5d15b1e477bd0af477f53795b338d1 /include
parent455b5993eb00db383b17a928ea54be5e5ddf3600 (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 'include')
-rw-r--r--include/modules.h3
-rw-r--r--include/users.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index e40b1d31b..5529862f4 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -588,9 +588,10 @@ class CoreExport Module : public Extensible
* can be gauranteed to already have processed the oper-up, for example m_spanningtree has sent
* out the OPERTYPE, etc.
* @param user The user who is opering up
+ * @param opername The name of the oper that the user is opering up to. Only valid locally. Empty string otherwise.
* @param opertype The opers type name
*/
- virtual void OnPostOper(User* user, const std::string &opertype);
+ virtual void OnPostOper(User* user, const std::string &opername, const std::string &opertype);
/** Called whenever a user types /INFO.
* The User will contain the information of the user who typed the command. Modules may use this
diff --git a/include/users.h b/include/users.h
index f28a12c75..cd2e98bd4 100644
--- a/include/users.h
+++ b/include/users.h
@@ -888,7 +888,7 @@ class CoreExport User : public connection
* This will also give the +o usermode.
* @param opertype The oper type to oper as
*/
- void Oper(const std::string &opertype);
+ void Oper(const std::string &opertype, const std::string &opername);
/** Call this method to find the matching <connect> for a user, and to check them against it.
*/