ZNC  trunk
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Member Functions | List of all members
CUser Class Reference

#include <User.h>

+ Inheritance diagram for CUser:
+ Collaboration diagram for CUser:

Public Types

enum  eHashType { HASH_NONE, HASH_MD5, HASH_SHA256, HASH_DEFAULT = HASH_SHA256 }
 

Public Member Functions

 CUser (const CString &sUsername)
 
 ~CUser ()
 
 CUser (const CUser &)=delete
 
CUseroperator= (const CUser &)=delete
 
bool ParseConfig (CConfig *Config, CString &sError)
 
CConfig ToConfig () const
 
bool CheckPass (const CString &sPass) const
 
bool AddAllowedHost (const CString &sHostMask)
 
bool RemAllowedHost (const CString &sHostMask)
 
void ClearAllowedHosts ()
 
bool IsHostAllowed (const CString &sHost) const
 
bool IsValid (CString &sErrMsg, bool bSkipPass=false) const
 
CModulesGetModules ()
 
const CModulesGetModules () const
 
CIRCNetworkAddNetwork (const CString &sNetwork, CString &sErrorRet)
 
bool DeleteNetwork (const CString &sNetwork)
 
bool AddNetwork (CIRCNetwork *pNetwork)
 
void RemoveNetwork (CIRCNetwork *pNetwork)
 
CIRCNetworkFindNetwork (const CString &sNetwork) const
 
const std::vector< CIRCNetwork * > & GetNetworks () const
 
bool HasSpaceForNewNetwork () const
 
bool PutUser (const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
 
bool PutAllUser (const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
 
bool PutStatus (const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
 
bool PutStatusNotice (const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
 
bool PutModule (const CString &sModule, const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
 
bool PutModNotice (const CString &sModule, const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
 
bool IsUserAttached () const
 
void UserConnected (CClient *pClient)
 
void UserDisconnected (CClient *pClient)
 
CString GetLocalDCCIP () const
 
CString ExpandString (const CString &sStr) const
 
CStringExpandString (const CString &sStr, CString &sRet) const
 
CString AddTimestamp (const CString &sStr) const
 
CString AddTimestamp (time_t tm, const CString &sStr) const
 
CString AddTimestamp (timeval tv, const CString &sStr) const
 
void CloneNetworks (const CUser &User)
 
bool Clone (const CUser &User, CString &sErrorRet, bool bCloneNetworks=true)
 
void BounceAllClients ()
 
void AddBytesRead (unsigned long long u)
 
void AddBytesWritten (unsigned long long u)
 
void SetNick (const CString &s)
 
void SetAltNick (const CString &s)
 
void SetIdent (const CString &s)
 
void SetRealName (const CString &s)
 
void SetBindHost (const CString &s)
 
void SetDCCBindHost (const CString &s)
 
void SetPass (const CString &s, eHashType eHash, const CString &sSalt="")
 
void SetMultiClients (bool b)
 
void SetDenyLoadMod (bool b)
 
void SetAdmin (bool b)
 
void SetDenySetBindHost (bool b)
 
bool SetStatusPrefix (const CString &s)
 
void SetDefaultChanModes (const CString &s)
 
void SetClientEncoding (const CString &s)
 
void SetQuitMsg (const CString &s)
 
bool AddCTCPReply (const CString &sCTCP, const CString &sReply)
 
bool DelCTCPReply (const CString &sCTCP)
 
bool SetBufferCount (unsigned int u, bool bForce=false)
 
bool SetChanBufferSize (unsigned int u, bool bForce=false)
 
bool SetQueryBufferSize (unsigned int u, bool bForce=false)
 
void SetAutoClearChanBuffer (bool b)
 
void SetAutoClearQueryBuffer (bool b)
 
bool SetLanguage (const CString &s)
 
void SetBeingDeleted (bool b)
 
void SetTimestampFormat (const CString &s)
 
void SetTimestampAppend (bool b)
 
void SetTimestampPrepend (bool b)
 
void SetAuthOnlyViaModule (bool b)
 
void SetTimezone (const CString &s)
 
void SetJoinTries (unsigned int i)
 
void SetMaxJoins (unsigned int i)
 
void SetSkinName (const CString &s)
 
void SetMaxNetworks (unsigned int i)
 
void SetMaxQueryBuffers (unsigned int i)
 
void SetNoTrafficTimeout (unsigned int i)
 
const std::vector< CClient * > & GetUserClients () const
 
std::vector< CClient * > GetAllClients () const
 
const CStringGetUserName () const
 
const CStringGetUsername () const
 
const CStringGetCleanUserName () const
 
const CStringGetNick (bool bAllowDefault=true) const
 
const CStringGetAltNick (bool bAllowDefault=true) const
 
const CStringGetIdent (bool bAllowDefault=true) const
 
CString GetRealName () const
 
const CStringGetBindHost () const
 
const CStringGetDCCBindHost () const
 
const CStringGetPass () const
 
eHashType GetPassHashType () const
 
const CStringGetPassSalt () const
 
const std::set< CString > & GetAllowedHosts () const
 
const CStringGetTimestampFormat () const
 
const CStringGetClientEncoding () const
 
bool GetTimestampAppend () const
 
bool GetTimestampPrepend () const
 
const CStringGetUserPath () const
 
bool DenyLoadMod () const
 
bool IsAdmin () const
 
bool DenySetBindHost () const
 
bool MultiClients () const
 
bool AuthOnlyViaModule () const
 
const CStringGetStatusPrefix () const
 
const CStringGetDefaultChanModes () const
 
unsigned int GetPingFrequency () const
 How long must an IRC connection be idle before ZNC sends a ping. More...
 
unsigned int GetPingSlack () const
 Time between checks if PINGs need to be sent. More...
 
unsigned int GetNoTrafficTimeout () const
 Timeout after which IRC connections are closed. More...
 
CString GetQuitMsg () const
 
const MCStringGetCTCPReplies () const
 
unsigned int GetBufferCount () const
 
unsigned int GetChanBufferSize () const
 
unsigned int GetQueryBufferSize () const
 
bool AutoClearChanBuffer () const
 
bool AutoClearQueryBuffer () const
 
bool IsBeingDeleted () const
 
CString GetTimezone () const
 
unsigned long long BytesRead () const
 
unsigned long long BytesWritten () const
 
unsigned int JoinTries () const
 
unsigned int MaxJoins () const
 
CString GetSkinName () const
 
CString GetLanguage () const
 
unsigned int MaxNetworks () const
 
unsigned int MaxQueryBuffers () const
 

Static Public Member Functions

static CString SaltedHash (const CString &sPass, const CString &sSalt)
 
static bool IsValidUsername (const CString &sUsername)
 
static bool IsValidUserName (const CString &sUsername)
 
static CString MakeCleanUsername (const CString &sUsername)
 
static CString MakeCleanUserName (const CString &sUsername)
 

Protected Attributes

const CString m_sUsername
 
const CString m_sCleanUsername
 
CString m_sNick
 
CString m_sAltNick
 
CString m_sIdent
 
CString m_sRealName
 
CString m_sBindHost
 
CString m_sDCCBindHost
 
CString m_sPass
 
CString m_sPassSalt
 
CString m_sStatusPrefix
 
CString m_sDefaultChanModes
 
CString m_sClientEncoding
 
CString m_sQuitMsg
 
MCString m_mssCTCPReplies
 
CString m_sTimestampFormat
 
CString m_sTimezone
 
eHashType m_eHashType
 
CString m_sUserPath
 
bool m_bMultiClients
 
bool m_bDenyLoadMod
 
bool m_bAdmin
 
bool m_bDenySetBindHost
 
bool m_bAutoClearChanBuffer
 
bool m_bAutoClearQueryBuffer
 
bool m_bBeingDeleted
 
bool m_bAppendTimestamp
 
bool m_bPrependTimestamp
 
bool m_bAuthOnlyViaModule
 
CUserTimer * m_pUserTimer
 
std::vector< CIRCNetwork * > m_vIRCNetworks
 
std::vector< CClient * > m_vClients
 
std::set< CStringm_ssAllowedHosts
 
unsigned int m_uChanBufferSize
 
unsigned int m_uQueryBufferSize
 
unsigned long long m_uBytesRead
 
unsigned long long m_uBytesWritten
 
unsigned int m_uMaxJoinTries
 
unsigned int m_uMaxNetworks
 
unsigned int m_uMaxQueryBuffers
 
unsigned int m_uMaxJoins
 
unsigned int m_uNoTrafficTimeout
 
CString m_sSkinName
 
CString m_sLanguage
 
CModulesm_pModules
 

Static Private Member Functions

static CString t_s (const CString &sEnglish, const CString &sContext="")
 
static CInlineFormatMessage t_f (const CString &sEnglish, const CString &sContext="")
 
static CInlineFormatMessage t_p (const CString &sEnglish, const CString &sEnglishes, int iNum, const CString &sContext="")
 
static CDelayedTranslation t_d (const CString &sEnglish, const CString &sContext="")
 

Member Enumeration Documentation

◆ eHashType

Enumerator
HASH_NONE 
HASH_MD5 
HASH_SHA256 
HASH_DEFAULT 

Constructor & Destructor Documentation

◆ CUser() [1/2]

CUser::CUser ( const CString sUsername)

◆ ~CUser()

CUser::~CUser ( )

◆ CUser() [2/2]

CUser::CUser ( const CUser )
delete

Member Function Documentation

◆ AddAllowedHost()

bool CUser::AddAllowedHost ( const CString sHostMask)

Referenced by SaltedHash().

◆ AddBytesRead()

void CUser::AddBytesRead ( unsigned long long  u)
inline

References m_uBytesRead.

◆ AddBytesWritten()

void CUser::AddBytesWritten ( unsigned long long  u)
inline

◆ AddCTCPReply()

bool CUser::AddCTCPReply ( const CString sCTCP,
const CString sReply 
)

Referenced by AddBytesWritten().

◆ AddNetwork() [1/2]

CIRCNetwork* CUser::AddNetwork ( const CString sNetwork,
CString sErrorRet 
)

Referenced by GetModules().

◆ AddNetwork() [2/2]

bool CUser::AddNetwork ( CIRCNetwork pNetwork)

◆ AddTimestamp() [1/3]

CString CUser::AddTimestamp ( const CString sStr) const

Referenced by GetModules().

◆ AddTimestamp() [2/3]

CString CUser::AddTimestamp ( time_t  tm,
const CString sStr 
) const

◆ AddTimestamp() [3/3]

CString CUser::AddTimestamp ( timeval  tv,
const CString sStr 
) const

◆ AuthOnlyViaModule()

bool CUser::AuthOnlyViaModule ( ) const

Referenced by GetUserClients().

◆ AutoClearChanBuffer()

bool CUser::AutoClearChanBuffer ( ) const

Referenced by GetNoTrafficTimeout().

◆ AutoClearQueryBuffer()

bool CUser::AutoClearQueryBuffer ( ) const

Referenced by GetNoTrafficTimeout().

◆ BounceAllClients()

void CUser::BounceAllClients ( )

Referenced by GetModules().

◆ BytesRead()

unsigned long long CUser::BytesRead ( ) const

Referenced by GetTimezone().

◆ BytesWritten()

unsigned long long CUser::BytesWritten ( ) const

Referenced by GetTimezone().

◆ CheckPass()

bool CUser::CheckPass ( const CString sPass) const

Referenced by SaltedHash().

◆ ClearAllowedHosts()

void CUser::ClearAllowedHosts ( )

Referenced by SaltedHash().

◆ Clone()

bool CUser::Clone ( const CUser User,
CString sErrorRet,
bool  bCloneNetworks = true 
)

Referenced by GetModules().

◆ CloneNetworks()

void CUser::CloneNetworks ( const CUser User)

Referenced by GetModules().

◆ DelCTCPReply()

bool CUser::DelCTCPReply ( const CString sCTCP)

Referenced by AddBytesWritten().

◆ DeleteNetwork()

bool CUser::DeleteNetwork ( const CString sNetwork)

Referenced by GetModules().

◆ DenyLoadMod()

bool CUser::DenyLoadMod ( ) const

Referenced by GetUserClients().

◆ DenySetBindHost()

bool CUser::DenySetBindHost ( ) const

Referenced by GetUserClients().

◆ ExpandString() [1/2]

CString CUser::ExpandString ( const CString sStr) const

Referenced by GetModules().

◆ ExpandString() [2/2]

CString& CUser::ExpandString ( const CString sStr,
CString sRet 
) const

◆ FindNetwork()

CIRCNetwork* CUser::FindNetwork ( const CString sNetwork) const

Referenced by GetModules().

◆ GetAllClients()

std::vector<CClient*> CUser::GetAllClients ( ) const

Referenced by GetUserClients().

◆ GetAllowedHosts()

const std::set<CString>& CUser::GetAllowedHosts ( ) const

Referenced by GetUserClients().

◆ GetAltNick()

const CString& CUser::GetAltNick ( bool  bAllowDefault = true) const

Referenced by GetUserClients().

◆ GetBindHost()

const CString& CUser::GetBindHost ( ) const

Referenced by GetUserClients().

◆ GetBufferCount()

unsigned int CUser::GetBufferCount ( ) const

◆ GetChanBufferSize()

unsigned int CUser::GetChanBufferSize ( ) const

Referenced by GetNoTrafficTimeout().

◆ GetCleanUserName()

const CString& CUser::GetCleanUserName ( ) const

Referenced by GetUserClients().

◆ GetClientEncoding()

const CString& CUser::GetClientEncoding ( ) const

Referenced by GetUserClients().

◆ GetCTCPReplies()

const MCString& CUser::GetCTCPReplies ( ) const

Referenced by GetNoTrafficTimeout().

◆ GetDCCBindHost()

const CString& CUser::GetDCCBindHost ( ) const

Referenced by GetUserClients().

◆ GetDefaultChanModes()

const CString& CUser::GetDefaultChanModes ( ) const

Referenced by GetUserClients().

◆ GetIdent()

const CString& CUser::GetIdent ( bool  bAllowDefault = true) const

Referenced by GetUserClients().

◆ GetLanguage()

CString CUser::GetLanguage ( ) const

Referenced by MaxJoins().

◆ GetLocalDCCIP()

CString CUser::GetLocalDCCIP ( ) const

Referenced by GetModules().

◆ GetModules() [1/2]

CModules& CUser::GetModules ( )
inline

References m_pModules.

◆ GetModules() [2/2]

const CModules& CUser::GetModules ( ) const
inline

◆ GetNetworks()

const std::vector<CIRCNetwork*>& CUser::GetNetworks ( ) const

Referenced by GetModules().

◆ GetNick()

const CString& CUser::GetNick ( bool  bAllowDefault = true) const

Referenced by GetUserClients().

◆ GetNoTrafficTimeout()

unsigned int CUser::GetNoTrafficTimeout ( ) const
inline

◆ GetPass()

const CString& CUser::GetPass ( ) const

Referenced by GetUserClients().

◆ GetPassHashType()

eHashType CUser::GetPassHashType ( ) const

Referenced by GetUserClients().

◆ GetPassSalt()

const CString& CUser::GetPassSalt ( ) const

Referenced by GetUserClients().

◆ GetPingFrequency()

unsigned int CUser::GetPingFrequency ( ) const
inline

How long must an IRC connection be idle before ZNC sends a ping.

References m_uNoTrafficTimeout.

◆ GetPingSlack()

unsigned int CUser::GetPingSlack ( ) const
inline

Time between checks if PINGs need to be sent.

References m_uNoTrafficTimeout.

◆ GetQueryBufferSize()

unsigned int CUser::GetQueryBufferSize ( ) const

Referenced by GetNoTrafficTimeout().

◆ GetQuitMsg()

CString CUser::GetQuitMsg ( ) const

Referenced by GetNoTrafficTimeout().

◆ GetRealName()

CString CUser::GetRealName ( ) const

Referenced by GetUserClients().

◆ GetSkinName()

CString CUser::GetSkinName ( ) const

Referenced by MaxJoins().

◆ GetStatusPrefix()

const CString& CUser::GetStatusPrefix ( ) const

Referenced by GetUserClients().

◆ GetTimestampAppend()

bool CUser::GetTimestampAppend ( ) const

Referenced by GetUserClients().

◆ GetTimestampFormat()

const CString& CUser::GetTimestampFormat ( ) const

Referenced by GetUserClients().

◆ GetTimestampPrepend()

bool CUser::GetTimestampPrepend ( ) const

Referenced by GetUserClients().

◆ GetTimezone()

CString CUser::GetTimezone ( ) const
inline

◆ GetUserClients()

const std::vector<CClient*>& CUser::GetUserClients ( ) const
inline

◆ GetUserName()

const CString& CUser::GetUserName ( ) const
Deprecated:
Use GetUsername() instead.

Referenced by GetUserClients().

◆ GetUsername()

const CString& CUser::GetUsername ( ) const

Referenced by GetUserClients().

◆ GetUserPath()

const CString& CUser::GetUserPath ( ) const

Referenced by GetUserClients().

◆ HasSpaceForNewNetwork()

bool CUser::HasSpaceForNewNetwork ( ) const

Referenced by GetModules().

◆ IsAdmin()

bool CUser::IsAdmin ( ) const

Referenced by GetUserClients().

◆ IsBeingDeleted()

bool CUser::IsBeingDeleted ( ) const
inline

References m_bBeingDeleted.

◆ IsHostAllowed()

bool CUser::IsHostAllowed ( const CString sHost) const

Referenced by SaltedHash().

◆ IsUserAttached()

bool CUser::IsUserAttached ( ) const

Referenced by GetModules().

◆ IsValid()

bool CUser::IsValid ( CString sErrMsg,
bool  bSkipPass = false 
) const

Referenced by SaltedHash().

◆ IsValidUsername()

static bool CUser::IsValidUsername ( const CString sUsername)
static

Referenced by SaltedHash().

◆ IsValidUserName()

static bool CUser::IsValidUserName ( const CString sUsername)
static
Deprecated:
Use IsValidUsername() instead.

Referenced by SaltedHash().

◆ JoinTries()

unsigned int CUser::JoinTries ( ) const
inline

References m_uMaxJoinTries.

◆ MakeCleanUsername()

static CString CUser::MakeCleanUsername ( const CString sUsername)
static

Referenced by SaltedHash().

◆ MakeCleanUserName()

static CString CUser::MakeCleanUserName ( const CString sUsername)
static
Deprecated:
Use MakeCleanUsername() instead.

Referenced by SaltedHash().

◆ MaxJoins()

unsigned int CUser::MaxJoins ( ) const
inline

◆ MaxNetworks()

unsigned int CUser::MaxNetworks ( ) const
inline

References m_uMaxNetworks.

◆ MaxQueryBuffers()

unsigned int CUser::MaxQueryBuffers ( ) const
inline

References m_uMaxQueryBuffers.

◆ MultiClients()

bool CUser::MultiClients ( ) const

Referenced by GetUserClients().

◆ operator=()

CUser& CUser::operator= ( const CUser )
delete

◆ ParseConfig()

bool CUser::ParseConfig ( CConfig Config,
CString sError 
)

◆ PutAllUser()

bool CUser::PutAllUser ( const CString sLine,
CClient pClient = nullptr,
CClient pSkipClient = nullptr 
)

Referenced by GetModules().

◆ PutModNotice()

bool CUser::PutModNotice ( const CString sModule,
const CString sLine,
CClient pClient = nullptr,
CClient pSkipClient = nullptr 
)

Referenced by GetModules().

◆ PutModule()

bool CUser::PutModule ( const CString sModule,
const CString sLine,
CClient pClient = nullptr,
CClient pSkipClient = nullptr 
)

Referenced by GetModules().

◆ PutStatus()

bool CUser::PutStatus ( const CString sLine,
CClient pClient = nullptr,
CClient pSkipClient = nullptr 
)

Referenced by GetModules().

◆ PutStatusNotice()

bool CUser::PutStatusNotice ( const CString sLine,
CClient pClient = nullptr,
CClient pSkipClient = nullptr 
)

Referenced by GetModules().

◆ PutUser()

bool CUser::PutUser ( const CString sLine,
CClient pClient = nullptr,
CClient pSkipClient = nullptr 
)

Referenced by GetModules().

◆ RemAllowedHost()

bool CUser::RemAllowedHost ( const CString sHostMask)

Referenced by SaltedHash().

◆ RemoveNetwork()

void CUser::RemoveNetwork ( CIRCNetwork pNetwork)

Referenced by GetModules().

◆ SaltedHash()

static CString CUser::SaltedHash ( const CString sPass,
const CString sSalt 
)
inlinestatic

◆ SetAdmin()

void CUser::SetAdmin ( bool  b)

Referenced by AddBytesWritten().

◆ SetAltNick()

void CUser::SetAltNick ( const CString s)

Referenced by AddBytesWritten().

◆ SetAuthOnlyViaModule()

void CUser::SetAuthOnlyViaModule ( bool  b)
inline

References m_bAuthOnlyViaModule.

◆ SetAutoClearChanBuffer()

void CUser::SetAutoClearChanBuffer ( bool  b)

Referenced by AddBytesWritten().

◆ SetAutoClearQueryBuffer()

void CUser::SetAutoClearQueryBuffer ( bool  b)

Referenced by AddBytesWritten().

◆ SetBeingDeleted()

void CUser::SetBeingDeleted ( bool  b)
inline

References m_bBeingDeleted.

◆ SetBindHost()

void CUser::SetBindHost ( const CString s)

Referenced by AddBytesWritten().

◆ SetBufferCount()

bool CUser::SetBufferCount ( unsigned int  u,
bool  bForce = false 
)

◆ SetChanBufferSize()

bool CUser::SetChanBufferSize ( unsigned int  u,
bool  bForce = false 
)

Referenced by AddBytesWritten().

◆ SetClientEncoding()

void CUser::SetClientEncoding ( const CString s)

Referenced by AddBytesWritten().

◆ SetDCCBindHost()

void CUser::SetDCCBindHost ( const CString s)

Referenced by AddBytesWritten().

◆ SetDefaultChanModes()

void CUser::SetDefaultChanModes ( const CString s)

Referenced by AddBytesWritten().

◆ SetDenyLoadMod()

void CUser::SetDenyLoadMod ( bool  b)

Referenced by AddBytesWritten().

◆ SetDenySetBindHost()

void CUser::SetDenySetBindHost ( bool  b)

Referenced by AddBytesWritten().

◆ SetIdent()

void CUser::SetIdent ( const CString s)

Referenced by AddBytesWritten().

◆ SetJoinTries()

void CUser::SetJoinTries ( unsigned int  i)
inline

References m_uMaxJoinTries.

◆ SetLanguage()

bool CUser::SetLanguage ( const CString s)

Referenced by AddBytesWritten().

◆ SetMaxJoins()

void CUser::SetMaxJoins ( unsigned int  i)
inline

References m_uMaxJoins.

◆ SetMaxNetworks()

void CUser::SetMaxNetworks ( unsigned int  i)
inline

References m_uMaxNetworks.

◆ SetMaxQueryBuffers()

void CUser::SetMaxQueryBuffers ( unsigned int  i)
inline

References m_uMaxQueryBuffers.

◆ SetMultiClients()

void CUser::SetMultiClients ( bool  b)

Referenced by AddBytesWritten().

◆ SetNick()

void CUser::SetNick ( const CString s)

Referenced by AddBytesWritten().

◆ SetNoTrafficTimeout()

void CUser::SetNoTrafficTimeout ( unsigned int  i)
inline

References m_uNoTrafficTimeout.

◆ SetPass()

void CUser::SetPass ( const CString s,
eHashType  eHash,
const CString sSalt = "" 
)

Referenced by AddBytesWritten().

◆ SetQueryBufferSize()

bool CUser::SetQueryBufferSize ( unsigned int  u,
bool  bForce = false 
)

Referenced by AddBytesWritten().

◆ SetQuitMsg()

void CUser::SetQuitMsg ( const CString s)

Referenced by AddBytesWritten().

◆ SetRealName()

void CUser::SetRealName ( const CString s)

Referenced by AddBytesWritten().

◆ SetSkinName()

void CUser::SetSkinName ( const CString s)
inline

References m_sSkinName.

◆ SetStatusPrefix()

bool CUser::SetStatusPrefix ( const CString s)

Referenced by AddBytesWritten().

◆ SetTimestampAppend()

void CUser::SetTimestampAppend ( bool  b)
inline

References m_bAppendTimestamp.

◆ SetTimestampFormat()

void CUser::SetTimestampFormat ( const CString s)
inline

References m_sTimestampFormat.

◆ SetTimestampPrepend()

void CUser::SetTimestampPrepend ( bool  b)
inline

References m_bPrependTimestamp.

◆ SetTimezone()

void CUser::SetTimezone ( const CString s)
inline

References m_sTimezone.

◆ ToConfig()

CConfig CUser::ToConfig ( ) const

Referenced by SaltedHash().

◆ UserConnected()

void CUser::UserConnected ( CClient pClient)

Referenced by GetModules().

◆ UserDisconnected()

void CUser::UserDisconnected ( CClient pClient)

Referenced by GetModules().

Member Data Documentation

◆ m_bAdmin

bool CUser::m_bAdmin
protected

◆ m_bAppendTimestamp

bool CUser::m_bAppendTimestamp
protected

Referenced by SetTimestampAppend().

◆ m_bAuthOnlyViaModule

bool CUser::m_bAuthOnlyViaModule
protected

Referenced by SetAuthOnlyViaModule().

◆ m_bAutoClearChanBuffer

bool CUser::m_bAutoClearChanBuffer
protected

◆ m_bAutoClearQueryBuffer

bool CUser::m_bAutoClearQueryBuffer
protected

◆ m_bBeingDeleted

bool CUser::m_bBeingDeleted
protected

Referenced by IsBeingDeleted(), and SetBeingDeleted().

◆ m_bDenyLoadMod

bool CUser::m_bDenyLoadMod
protected

◆ m_bDenySetBindHost

bool CUser::m_bDenySetBindHost
protected

◆ m_bMultiClients

bool CUser::m_bMultiClients
protected

◆ m_bPrependTimestamp

bool CUser::m_bPrependTimestamp
protected

Referenced by SetTimestampPrepend().

◆ m_eHashType

eHashType CUser::m_eHashType
protected

◆ m_mssCTCPReplies

MCString CUser::m_mssCTCPReplies
protected

◆ m_pModules

CModules* CUser::m_pModules
protected

Referenced by GetModules().

◆ m_pUserTimer

CUserTimer* CUser::m_pUserTimer
protected

◆ m_sAltNick

CString CUser::m_sAltNick
protected

◆ m_sBindHost

CString CUser::m_sBindHost
protected

◆ m_sCleanUsername

const CString CUser::m_sCleanUsername
protected

◆ m_sClientEncoding

CString CUser::m_sClientEncoding
protected

◆ m_sDCCBindHost

CString CUser::m_sDCCBindHost
protected

◆ m_sDefaultChanModes

CString CUser::m_sDefaultChanModes
protected

◆ m_sIdent

CString CUser::m_sIdent
protected

◆ m_sLanguage

CString CUser::m_sLanguage
protected

◆ m_sNick

CString CUser::m_sNick
protected

◆ m_sPass

CString CUser::m_sPass
protected

◆ m_sPassSalt

CString CUser::m_sPassSalt
protected

◆ m_sQuitMsg

CString CUser::m_sQuitMsg
protected

◆ m_sRealName

CString CUser::m_sRealName
protected

◆ m_ssAllowedHosts

std::set<CString> CUser::m_ssAllowedHosts
protected

◆ m_sSkinName

CString CUser::m_sSkinName
protected

Referenced by SetSkinName().

◆ m_sStatusPrefix

CString CUser::m_sStatusPrefix
protected

◆ m_sTimestampFormat

CString CUser::m_sTimestampFormat
protected

Referenced by SetTimestampFormat().

◆ m_sTimezone

CString CUser::m_sTimezone
protected

Referenced by GetTimezone(), and SetTimezone().

◆ m_sUsername

const CString CUser::m_sUsername
protected

◆ m_sUserPath

CString CUser::m_sUserPath
protected

◆ m_uBytesRead

unsigned long long CUser::m_uBytesRead
protected

Referenced by AddBytesRead().

◆ m_uBytesWritten

unsigned long long CUser::m_uBytesWritten
protected

Referenced by AddBytesWritten().

◆ m_uChanBufferSize

unsigned int CUser::m_uChanBufferSize
protected

◆ m_uMaxJoins

unsigned int CUser::m_uMaxJoins
protected

Referenced by MaxJoins(), and SetMaxJoins().

◆ m_uMaxJoinTries

unsigned int CUser::m_uMaxJoinTries
protected

Referenced by JoinTries(), and SetJoinTries().

◆ m_uMaxNetworks

unsigned int CUser::m_uMaxNetworks
protected

Referenced by MaxNetworks(), and SetMaxNetworks().

◆ m_uMaxQueryBuffers

unsigned int CUser::m_uMaxQueryBuffers
protected

◆ m_uNoTrafficTimeout

unsigned int CUser::m_uNoTrafficTimeout
protected

◆ m_uQueryBufferSize

unsigned int CUser::m_uQueryBufferSize
protected

◆ m_vClients

std::vector<CClient*> CUser::m_vClients
protected

Referenced by GetUserClients().

◆ m_vIRCNetworks

std::vector<CIRCNetwork*> CUser::m_vIRCNetworks
protected

The documentation for this class was generated from the following file: