diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-29 17:09:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-29 17:09:06 +0000 |
commit | de6a9294e350a7339e280ab3e8a5f4c8d1343660 (patch) | |
tree | c45d06c0c2db5044ea5b4de3e7647975c16543d5 /include/modules.h | |
parent | 76f43a55180e8b8e8e3bbb32be3931ca1431666a (diff) |
Added opertype to OnOper and added OnMode function
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2010 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); |