Move code for creating CIRCSocks into a CCron and use DynamicSelectLoop

DynamicSelectLoop checks when the next cron runs and sleeps until then (with an
upper and lower border).
To fix the connecting code it needed to be moved into a cron.



git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@860 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-11-03 20:04:24 +00:00
parent 2503cd9d37
commit a213258c99
3 changed files with 141 additions and 69 deletions

View File

@@ -118,6 +118,9 @@ void CUser::IRCDisconnected() {
for (unsigned int a = 0; a < m_vClients.size(); a++) {
m_vClients[a]->IRCDisconnected();
}
// Get the reconnect going
CZNC::Get().EnableConnectUser();
}
CString CUser::ExpandString(const CString& sStr) const {