From de6a9294e350a7339e280ab3e8a5f4c8d1343660 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 29 Nov 2005 17:09:06 +0000 Subject: Added opertype to OnOper and added OnMode function git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2010 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 1213e60ca..0703a9345 100644 --- a/include/modules.h +++ b/include/modules.h @@ -361,7 +361,7 @@ class Module : public classbase * The userrec will contain the oper mode 'o' as this function is called after any modifications * are made to the user's structure by the core. */ - virtual void OnOper(userrec* user); + virtual void OnOper(userrec* user, std::string opertype); /** Called whenever a user types /INFO. * The userrec will contain the information of the user who typed the command. Modules may use this @@ -420,6 +420,8 @@ class Module : public classbase virtual void OnUserMessage(userrec* user, void* dest, int target_type, std::string text); virtual void OnUserNotice(userrec* user, void* dest, int target_type, std::string text); + + virtual void OnMode(userrec* user, void* dest, int target_type, std::string text); virtual int OnUserPreNick(userrec* user, std::string newnick); -- cgit v1.2.3