mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
This was found via partyline and notify_connect. notify_connect calls CZNC::Broadcast() in OnClientLogin() which calls the OnBroadcast() module call. When returning from this module calls, m_pUser and m_pClient was reset to NULL and all the following modules got their OnClientLogin() called with m_pUser and m_pClient set to NULL. This patch fixes this by resetting those vars to their old values instead to NULL when returning from a module call. This patch also fixes the bug that m_pUser and m_pClient in modules were reset to NULL after they caused a module call which called back into the current module. The fix looks similar to the other one (this one is the Modules.h part). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1438 726aef4b-f618-498e-8847-2d620e286838
33 KiB
33 KiB