From 6129f2e4a0c3bd50c3f9ff62c7dfd0b27ecdcc7f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Apr 2004 19:34:06 +0000 Subject: 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 --- include/modules.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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); }; -- cgit v1.2.3