summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index c886e9a74..0f58afebb 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -626,6 +626,12 @@ class CoreExport Module : public Extensible
*/
virtual void OnDelXLine(User *u, XLine *x, XLineType Type) { }
+ /** Called when a user is checked for whether they are a services oper
+ * @param u The user
+ * @return EVENT_ALLOW to allow, anything else to deny
+ */
+ virtual EventReturn IsServicesOper(User *u) { return EVENT_CONTINUE; }
+
/** Called when a server quits
* @param server The server
*/
@@ -1060,7 +1066,7 @@ enum Implementation
/* OperServ */
I_OnDefconLevel, I_OnAddAkill, I_OnDelAkill, I_OnExceptionAdd, I_OnExceptionDel,
- I_OnAddXLine, I_OnDelXLine,
+ I_OnAddXLine, I_OnDelXLine, I_IsServicesOper,
/* Database */
I_OnPostLoadDatabases, I_OnSaveDatabase, I_OnLoadDatabase,