From 1e1e59d32934ee61562804cd86321ffe849c1ecb Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 5 Apr 2004 01:03:26 +0000 Subject: Modified the Module::OnExtendedMode() method to use a void* as its target which the coder must cast into a chanrec or userrec. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@383 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 1391c5958..2e6fbf860 100644 --- a/include/modules.h +++ b/include/modules.h @@ -167,9 +167,10 @@ class Module : public classbase * parameters for the mode as strings. If mode_on is false, the mode is being removed, and parameters * may contain the parameters for the mode, dependent on wether they were defined when a mode handler * was set up with Server::AddExtendedMode - * If the mode is not a channel mode, chanrec* chan is null, and should not be read from or written to. + * If the mode is a channel mode, target is a chanrec*, and if it is a user mode, target is a userrec*. + * You must cast this value yourself to make use of it. */ - virtual bool OnExtendedMode(userrec* user, chanrec* chan, char modechar, int type, bool mode_on, string_list ¶ms); + virtual bool OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list ¶ms); /** Called whenever a user is about to join a channel, before any processing is done. * Returning any nonzero value from this function stops the process immediately, causing no -- cgit v1.2.3