]> jfr.im git - irc/rizon/znc.git/commitdiff
Small optimization to starting the connect user timer
authorpsychon <redacted>
Sun, 21 Sep 2008 12:51:43 +0000 (12:51 +0000)
committerpsychon <redacted>
Sun, 21 Sep 2008 12:51:43 +0000 (12:51 +0000)
Now the connect user timer is only started when the user which was disconnected
from IRC wants to reconnect, not always.

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

User.cpp

index 0c4d9b04889123ef1f5a866f5cfe7b417d6b27dc..2a83e542186e2f61fb44dca8f617dbdcb06f155e 100644 (file)
--- a/User.cpp
+++ b/User.cpp
@@ -118,7 +118,7 @@ void CUser::IRCDisconnected() {
        SetIRCServer("");
 
        // Get the reconnect going
-       CZNC::Get().EnableConnectUser();
+       CheckIRCConnect();
 }
 
 CString CUser::ExpandString(const CString& sStr) const {