diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-22 19:34:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-22 19:34:06 +0000 |
commit | 6129f2e4a0c3bd50c3f9ff62c7dfd0b27ecdcc7f (patch) | |
tree | 287bdc416487c8b226b42cc52272abaa69b297b3 /include/modules.h | |
parent | 8aeb34aa15bfc32e8894c652f09673c2fb27a32f (diff) |
Added more services stuff
Added support for OnUserPreNick API command (used with qlines, etc)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@696 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index 20fb5f04d..cf5d87f6f 100644 --- a/include/modules.h +++ b/include/modules.h @@ -230,6 +230,15 @@ class Module : public classbase * of where the message is destined to be sent. */ virtual int OnUserPreNotice(userrec* user,void* dest,int target_type, std::string text); + + /** Called before any nickchange, local or remote. This can be used to implement Q-lines etc. + * Please note that although you can see remote nickchanges through this function, you should + * NOT make any changes to the userrec if the user is a remote user as this may cause a desnyc. + * check user->server before taking any action (including returning nonzero from the method). + * If your method returns nonzero, the nickchange is silently forbidden, and it is down to your + * module to generate some meaninful output. + */ + virtual int OnUserPreNick(userrec* user, std::string newnick); }; |