Rename OnUserAttached and OnUserDetached and add OnClientConnect

OnUserAttached is renamed to OnClientLogin and
OnUserDetached to OnClientDisconnect.
This adds some new function with different arguments for the old names to cause
warnings from -Woverloaded-virtual while compiling.

This patch also adds OnClientConnect() which is called when the low-level
raw connection is established. (No SSL-handshake was done at this point yet!)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1266 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-10-29 17:26:30 +00:00
parent e85ed684ea
commit db21f88584
12 changed files with 36 additions and 25 deletions

View File

@@ -79,11 +79,11 @@ public:
SetAway(false);
}
virtual void OnUserAttached() {
virtual void OnClientLogin() {
SetBack();
}
virtual void OnUserDetached() {
virtual void OnClientDisconnect() {
/* There might still be other clients */
if (!m_pUser->IsUserAttached())
SetAway();