Logo Search packages:      
Sourcecode: sbnc version File versions  Download package

CUser::~CUser ( void   )  [virtual]

~CUser

Destructs a user object.

Definition at line 176 of file User.cpp.

References CTimer::Destroy(), CConfig::Destroy(), CCore::GetAdminUsers(), CIRCConnection::Kill(), CClientConnectionMultiplexer::Kill(), m_BadLoginPulse, m_ClientCertificates, m_ClientStats, m_Config, m_IRC, m_IRCStats, m_Keys, m_Log, m_Name, and CVector< Type >::Remove().

                  {
      if (m_MemoryManager != NULL) {
            m_MemoryManager->RealManager = NULL;
      }

      m_ClientMultiplexer->Kill("Removing user.");

      if (m_IRC != NULL) {
            m_IRC->Kill("-)(- If you can't see the fnords, they can't eat you.");
      }

      m_Config->Destroy();
      delete m_Log;

      delete m_ClientStats;
      delete m_IRCStats;

      delete m_Keys;

      ufree(m_Name);

      if (m_BadLoginPulse != NULL) {
            m_BadLoginPulse->Destroy();
      }

#ifdef USESSL
      for (unsigned int i = 0; i < m_ClientCertificates.GetLength(); i++) {
            X509_free(m_ClientCertificates[i]);
      }
#endif

      g_Bouncer->GetAdminUsers()->Remove(this);
}


Generated by  Doxygen 1.6.0   Back to index