diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-05 01:03:26 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-05 01:03:26 +0000 |
commit | 1e1e59d32934ee61562804cd86321ffe849c1ecb (patch) | |
tree | dbb153dbf5c827f1a43bd2d2f306c268a8bec9ed /include/modules.h | |
parent | c5ad0a19cbf86510fc0b75ac96ea9d57598da91f (diff) |
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
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 |