]> jfr.im git - irc/rizon/znc.git/commit
Handle clients in CModules the same way users are
authorpsychon <redacted>
Sat, 30 Aug 2008 19:46:28 +0000 (19:46 +0000)
committerpsychon <redacted>
Sat, 30 Aug 2008 19:46:28 +0000 (19:46 +0000)
commit5fa8d03d2beaec1bff4979818b73abe5b11adfd6
tree45ab605564dd4ab64e82de22592026c1a7623a64
parent02beef2e07d7024a1b9de3c22872c2ec146e6ad9
Handle clients in CModules the same way users are

This should remove some additional complexity, but I doubt one can
benchmark these savings...

BTW: Here is what I found out on how this works:
The user module manager (CModules) always has m_pUser set to NULL which means
that it never touches its module's user pointer. That way, the modules
always have the correct pointer.

For global modules, m_pUser is set on some calls. This pointer is then
passed on to the modules and reset afterwards.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1182 726aef4b-f618-498e-8847-2d620e286838
Modules.cpp
Modules.h