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 /src/inspircd.cpp | |
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 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 72b965741..adde759bf 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2395,7 +2395,7 @@ bool allowed_umode(char umode, char* sourcemodes,bool adding) return false; } -bool process_module_umode(char umode, userrec* source, userrec* dest, bool adding) +bool process_module_umode(char umode, userrec* source, void* dest, bool adding) { string_list p; p.clear(); @@ -2403,7 +2403,7 @@ bool process_module_umode(char umode, userrec* source, userrec* dest, bool addin { for (int i = 0; i <= MODCOUNT; i++) { - if (modules[i]->OnExtendedMode(source,(chanrec*)NULL,umode,MT_CLIENT,adding,p)) + if (modules[i]->OnExtendedMode(source,(void*)dest,umode,MT_CLIENT,adding,p)) { log(DEBUG,"Module claims umode %c",umode); return true; |