20 #include <znc/zncconfig.h>
97 CClient* pSkipClient =
nullptr);
101 return PutUser(sLine, pClient, pSkipClient);
104 CClient* pSkipClient =
nullptr);
106 CClient* pSkipClient =
nullptr);
111 CClient* pSkipClient =
nullptr);
128 bool bCloneNetworks =
true);
305 void SetKeepBuffer(
bool b) {
#define ZNC_MSG_DEPRECATED(msg)
Definition: Message.h:23
Definition: Translation.h:103
Definition: FileUtils.h:30
Definition: IRCNetwork.h:40
Definition: Modules.h:1464
String class that is used inside ZNC.
Definition: ZNCString.h:68
MCString m_mssCTCPReplies
Definition: User.h:260
const std::vector< CIRCNetwork * > & GetNetworks() const
const CString & GetNick(bool bAllowDefault=true) const
void SetBeingDeleted(bool b)
Definition: User.h:165
void SetAutoClearQueryBuffer(bool b)
const CString m_sUsername
Definition: User.h:245
void SetDenySetBindHost(bool b)
bool DenySetCTCPReplies() const
CIRCNetwork * AddNetwork(const CString &sNetwork, CString &sErrorRet)
CUserTimer * m_pUserTimer
Definition: User.h:285
CString m_sDCCBindHost
Definition: User.h:252
const MCString & GetCTCPReplies() const
bool DenySetBindHost() const
unsigned long long m_uBytesWritten
Definition: User.h:293
void SetDCCBindHost(const CString &s)
bool m_bDenySetCTCPReplies
Definition: User.h:277
bool PutUser(const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
const CString & GetDefaultChanModes() const
void SetPass(const CString &s, eHashType eHash, const CString &sSalt="")
unsigned int m_uNoTrafficTimeout
Definition: User.h:298
static bool IsValidUserName(const CString &sUsername)
bool m_bAutoClearChanBuffer
Definition: User.h:278
CUser(const CUser &)=delete
unsigned int GetPingSlack() const
Time between checks if PINGs need to be sent.
Definition: User.h:218
const CString & GetPassSalt() const
bool m_bDenySetBindHost
Definition: User.h:272
bool AuthOnlyViaModule() const
CString m_sDefaultChanModes
Definition: User.h:256
CString GetLocalDCCIP() const
void SetDenySetNetwork(bool b)
CIRCNetwork * FindNetwork(const CString &sNetwork) const
unsigned long long BytesWritten() const
void SetAutoClearChanBuffer(bool b)
void SetDefaultChanModes(const CString &s)
void SetTimestampFormat(const CString &s)
Definition: User.h:166
bool AutoClearQueryBuffer() const
CString m_sLanguage
Definition: User.h:300
std::set< CString > m_ssAllowedHosts
Definition: User.h:289
const std::vector< CClient * > & GetUserClients() const
Definition: User.h:180
bool m_bAdmin
Definition: User.h:271
unsigned long long m_uBytesRead
Definition: User.h:292
std::vector< CClient * > m_vClients
Definition: User.h:288
bool CheckPass(const CString &sPass)
Checks password, may upgrade the hash method.
bool IsValid(CString &sErrMsg, bool bSkipPass=false) const
static CString MakeCleanUsername(const CString &sUsername)
void SetNick(const CString &s)
bool m_bMultiClients
Definition: User.h:269
bool SetChanBufferSize(unsigned int u, bool bForce=false)
bool m_bAuthOnlyViaModule
Definition: User.h:283
unsigned int MaxQueryBuffers() const
Definition: User.h:241
bool m_bDenyLoadMod
Definition: User.h:270
bool IsHostAllowed(const CString &sHost) const
bool AddAllowedHost(const CString &sHostMask)
bool SetBufferCount(unsigned int u, bool bForce=false)
bool HasSpaceForNewNetwork() const
bool m_bDenySetIdent
Definition: User.h:273
void AddBytesWritten(unsigned long long u)
Definition: User.h:132
CUser(const CString &sUsername)
bool m_bPrependTimestamp
Definition: User.h:282
CString m_sTimezone
Definition: User.h:262
CString m_sUserPath
Definition: User.h:266
std::vector< CClient * > GetAllClients() const
void SetDenySetRealName(bool b)
bool Clone(const CUser &User, CString &sErrorRet, bool bCloneNetworks=true)
void SetAltNick(const CString &s)
CUser & operator=(const CUser &)=delete
bool AddNetwork(CIRCNetwork *pNetwork)
void SetRealName(const CString &s)
void SetMultiClients(bool b)
bool DeleteNetwork(const CString &sNetwork)
void SetDenySetCTCPReplies(bool b)
const CString & GetUserPath() const
bool PutModNotice(const CString &sModule, const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
bool GetTimestampPrepend() const
bool DenySetIdent() const
const CString & GetCleanUserName() const
bool AddCTCPReply(const CString &sCTCP, const CString &sReply)
void AddBytesRead(unsigned long long u)
Definition: User.h:131
CString AddTimestamp(time_t tm, const CString &sStr) const
bool m_bDenySetNetwork
Definition: User.h:274
CString m_sPassSalt
Definition: User.h:254
void SetClientEncoding(const CString &s)
const CString m_sCleanUsername
Definition: User.h:246
CString AddTimestamp(const CString &sStr) const
const CString & GetUserName() const
CModules & GetModules()
Definition: User.h:82
unsigned int GetNoTrafficTimeout() const
Timeout after which IRC connections are closed.
Definition: User.h:222
const CString & GetBindHost() const
void RemoveNetwork(CIRCNetwork *pNetwork)
unsigned int m_uMaxJoinTries
Definition: User.h:294
void SetTimezone(const CString &s)
Definition: User.h:170
CString m_sTimestampFormat
Definition: User.h:261
const CString & GetAltNick(bool bAllowDefault=true) const
CString ExpandString(const CString &sStr) const
unsigned int m_uMaxJoins
Definition: User.h:297
bool DenySetQuitMsg() const
std::vector< CIRCNetwork * > m_vIRCNetworks
Definition: User.h:287
unsigned int GetChanBufferSize() const
bool m_bAppendTimestamp
Definition: User.h:281
void SetDenySetIdent(bool b)
unsigned int m_uMaxNetworks
Definition: User.h:295
void SetMaxQueryBuffers(unsigned int i)
Definition: User.h:175
void SetJoinTries(unsigned int i)
Definition: User.h:171
CString GetQuitMsg() const
bool PutStatusNotice(const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
CString GetRealName() const
unsigned int m_uMaxQueryBuffers
Definition: User.h:296
bool m_bBeingDeleted
Definition: User.h:280
unsigned long long BytesRead() const
bool DenySetNetwork() const
static CString SaltedHash(const CString &sPass, const CString &sSalt)
Definition: User.h:62
bool DelCTCPReply(const CString &sCTCP)
CString GetSkinName() const
const CString & GetIdent(bool bAllowDefault=true) const
CString m_sAltNick
Definition: User.h:248
static bool IsValidUsername(const CString &sUsername)
const CModules & GetModules() const
Definition: User.h:83
bool PutStatus(const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
void CloneNetworks(const CUser &User)
void SetMaxNetworks(unsigned int i)
Definition: User.h:174
unsigned int GetQueryBufferSize() const
unsigned int GetPingFrequency() const
How long must an IRC connection be idle before ZNC sends a ping.
Definition: User.h:216
CString m_sIdent
Definition: User.h:249
unsigned int m_uChanBufferSize
Definition: User.h:290
const CString & GetUsername() const
CString m_sNick
Definition: User.h:247
unsigned int MaxNetworks() const
Definition: User.h:240
CString m_sRealName
Definition: User.h:250
bool AutoClearChanBuffer() const
void SetQuitMsg(const CString &s)
void SetNoTrafficTimeout(unsigned int i)
Definition: User.h:176
const CString & GetTimestampFormat() const
void SetSkinName(const CString &s)
Definition: User.h:173
unsigned int MaxJoins() const
Definition: User.h:237
void SetTimestampAppend(bool b)
Definition: User.h:167
CString m_sPass
Definition: User.h:253
bool IsBeingDeleted() const
Definition: User.h:232
CString & ExpandString(const CString &sStr, CString &sRet) const
void SetBindHost(const CString &s)
CString GetLanguage() const
CString m_sBindHost
Definition: User.h:251
unsigned int m_uQueryBufferSize
Definition: User.h:291
CString m_sSkinName
Definition: User.h:299
const std::set< CString > & GetAllowedHosts() const
bool IsUserAttached() const
CString AddTimestamp(timeval tv, const CString &sStr) const
void UserConnected(CClient *pClient)
void SetIdent(const CString &s)
const CString & GetClientEncoding() const
CString GetTimezone() const
Definition: User.h:233
unsigned int JoinTries() const
Definition: User.h:236
bool m_bDenySetQuitMsg
Definition: User.h:276
bool SetQueryBufferSize(unsigned int u, bool bForce=false)
void SetMaxJoins(unsigned int i)
Definition: User.h:172
const CString & GetStatusPrefix() const
bool SetStatusPrefix(const CString &s)
bool PutAllUser(const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr) ZNC_MSG_DEPRECATED("Use PutUser() instead")
Definition: User.h:98
void SetDenyLoadMod(bool b)
bool PutModule(const CString &sModule, const CString &sLine, CClient *pClient=nullptr, CClient *pSkipClient=nullptr)
bool ParseConfig(CConfig *Config, CString &sError)
bool DenySetRealName() const
void UserDisconnected(CClient *pClient)
bool SetLanguage(const CString &s)
bool m_bDenySetRealName
Definition: User.h:275
CModules * m_pModules
Definition: User.h:302
bool RemAllowedHost(const CString &sHostMask)
CString m_sClientEncoding
Definition: User.h:257
unsigned int GetBufferCount() const
bool MultiClients() const
bool GetTimestampAppend() const
const CString & GetPass() const
eHashType m_eHashType
Definition: User.h:263
eHashType
Definition: User.h:48
@ HASH_SHA256
Definition: User.h:51
@ HASH_MD5
Definition: User.h:50
@ HASH_ARGON2ID
Definition: User.h:52
@ HASH_DEFAULT
Definition: User.h:58
@ HASH_NONE
Definition: User.h:49
void SetDenySetQuitMsg(bool b)
bool m_bAutoClearQueryBuffer
Definition: User.h:279
void SetAuthOnlyViaModule(bool b)
Definition: User.h:169
CString m_sQuitMsg
Definition: User.h:259
void SetTimestampPrepend(bool b)
Definition: User.h:168
const CString & GetDCCBindHost() const
CString m_sStatusPrefix
Definition: User.h:255
eHashType GetPassHashType() const
static CString MakeCleanUserName(const CString &sUsername)
static CString SaltedHash(const CString &sPass, const CString &sSalt)
A dictionary for strings.
Definition: ZNCString.h:595