20 #include <znc/zncconfig.h>
128 const timeval* ts =
nullptr,
std::vector< CString > VCString
Definition: ZNCString.h:38
bool SetLineCount(unsigned int u, bool bForce=false)
size_type AddLine(const CMessage &Format, const CString &sText="")
unsigned int GetLineCount() const
Definition: Buffer.h:107
void Clear()
Definition: Buffer.h:100
void SetTopic(const CString &s)
Definition: Chan.h:157
bool RemNick(const CString &sNick)
void InheritAutoClearChanBuffer(bool b)
unsigned long GetCreationDate() const
Definition: Chan.h:195
void SetAutoClearChanBuffer(bool b)
CString m_sKey
Definition: Chan.h:213
void ClearBuffer()
Definition: Chan.h:132
void SetTopicDate(unsigned long u)
Definition: Chan.h:159
bool AddMode(char cMode, const CString &sArg)
CChan(const CChan &)=delete
const std::map< char, CString > & GetModes() const
Definition: Chan.h:182
bool InConfig() const
Definition: Chan.h:194
CBuffer m_Buffer
Definition: Chan.h:223
bool m_bHasAutoClearChanBufferSet
Definition: Chan.h:211
void ResetJoinTries()
Definition: Chan.h:170
bool m_bInConfig
Definition: Chan.h:208
const CString & GetTopicOwner() const
Definition: Chan.h:187
CNick m_Nick
Definition: Chan.h:219
CNick * FindNick(const CString &sNick)
void SendBuffer(CClient *pClient)
size_t AddBuffer(const CMessage &Format, const CString &sText="")
Definition: Chan.h:123
void IncJoinTries()
Definition: Chan.h:169
size_t GetNickCount() const
Definition: Chan.h:191
bool RemPerm(char cPerm)
e.g. '@' for chanop.
Definition: Chan.h:145
CString m_sTopicOwner
Definition: Chan.h:215
void SetIsOn(bool b)
Definition: Chan.h:150
bool SetBufferCount(unsigned int u, bool bForce=false)
Definition: Chan.h:115
CString GetModeString() const
bool ChangeNick(const CString &sOldNick, const CString &sNewNick)
void SetDefaultModes(const CString &s)
Definition: Chan.h:160
void SetModes(const CString &s)
const CString & GetName() const
Definition: Chan.h:181
void OnWho(const CString &sNick, const CString &sIdent, const CString &sHost)
void ModeChange(const CString &sModes, const VCString &vsModeParams, const CNick *OpNick=nullptr)
Handle changing the modes on a channel.
bool AddNick(const CString &sNick)
CChan(const CString &sName, CIRCNetwork *pNetwork, bool bInConfig, CConfig *pConfig=nullptr)
const CString & GetKey() const
Definition: Chan.h:185
const CString & GetDefaultModes() const
Definition: Chan.h:189
std::map< char, unsigned int > GetPermCounts() const
void InheritBufferCount(unsigned int u, bool bForce=false)
Definition: Chan.h:119
const CBuffer & GetBuffer() const
Definition: Chan.h:113
unsigned int GetBufferCount() const
Definition: Chan.h:114
CString GetModeForNames() const
bool m_bModeKnown
Definition: Chan.h:225
CString GetPermStr() const
e.g. '@' for chanop.
Definition: Chan.h:139
unsigned long m_ulCreationDate
Definition: Chan.h:217
void JoinUser(const CString &sKey="")
EUserPerms
Definition: Chan.h:37
@ Owner
Definition: Chan.h:42
@ Voice
Definition: Chan.h:38
@ Op
Definition: Chan.h:40
@ Admin
Definition: Chan.h:41
@ HalfOp
Definition: Chan.h:39
CString m_sDefaultModes
Definition: Chan.h:221
const CString & GetTopic() const
Definition: Chan.h:186
const CNick * FindNick(const CString &sNick) const
bool AddPerm(char cPerm)
e.g. '@' for chanop.
Definition: Chan.h:143
void Disable()
Definition: Chan.h:167
void SetModeKnown(bool b)
Definition: Chan.h:149
bool IsOn() const
Definition: Chan.h:180
void ModeChange(const CString &sModes, const CNick *OpNick=nullptr)
unsigned int GetJoinTries() const
Definition: Chan.h:197
bool m_bIsOn
Definition: Chan.h:206
void ResetAutoClearChanBuffer()
bool HasMode(char cMode) const
unsigned long GetTopicDate() const
Definition: Chan.h:188
void SetCreationDate(unsigned long u)
Definition: Chan.h:166
int AddNicks(const CString &sNicks)
std::map< char, CString > m_mcsModes
Definition: Chan.h:226
size_t AddBuffer(const CString &sFormat, const CString &sText="", const timeval *ts=nullptr, const MCString &mssTags=MCString::EmptyMap)
Definition: Chan.h:127
CString GetOptions() const
bool IsModeKnown() const
Definition: Chan.h:175
void SetTopicOwner(const CString &s)
Definition: Chan.h:158
bool HasBufferCountSet() const
Definition: Chan.h:198
bool HasAutoClearChanBufferSet() const
Definition: Chan.h:199
std::map< CString, CNick > m_msNicks
Definition: Chan.h:222
EModes
Definition: Chan.h:45
@ M_Key
Definition: Chan.h:53
@ M_Private
Definition: Chan.h:46
@ M_Limit
Definition: Chan.h:52
@ M_Ban
Definition: Chan.h:56
@ M_Op
Definition: Chan.h:54
@ M_OpTopic
Definition: Chan.h:51
@ M_Secret
Definition: Chan.h:47
@ M_NoMessages
Definition: Chan.h:50
@ M_Except
Definition: Chan.h:57
@ M_InviteOnly
Definition: Chan.h:49
@ M_Voice
Definition: Chan.h:55
@ M_Moderated
Definition: Chan.h:48
CString m_sTopic
Definition: Chan.h:214
void SetDetached(bool b=true)
Definition: Chan.h:164
void AttachUser(CClient *pClient=nullptr)
CString GetModeArg(char cMode) const
bool m_bAutoClearChanBuffer
Definition: Chan.h:207
void SetKey(const CString &s)
CString GetModeArg(CString &sArgs) const
bool m_bDisabled
Definition: Chan.h:209
const std::map< CString, CNick > & GetNicks() const
Definition: Chan.h:190
bool m_bDetached
Definition: Chan.h:205
CChan & operator=(const CChan &)=delete
void SendBuffer(CClient *pClient, const CBuffer &Buffer)
bool IsDetached() const
Definition: Chan.h:193
bool HasPerm(char cPerm) const
e.g. '@' for chanop.
Definition: Chan.h:141
CIRCNetwork * GetNetwork() const
Definition: Chan.h:174
CString m_sName
Definition: Chan.h:212
bool IsDisabled() const
Definition: Chan.h:196
unsigned int m_uJoinTries
Definition: Chan.h:220
void SetModes(const CString &sModes, const VCString &vsModeParams)
Set the current modes for this channel.
bool AutoClearChanBuffer() const
Definition: Chan.h:192
bool m_bHasBufferCountSet
Definition: Chan.h:210
unsigned long m_ulTopicDate
Definition: Chan.h:216
CIRCNetwork * m_pNetwork
Definition: Chan.h:218
Definition: Translation.h:103
Definition: FileUtils.h:30
Definition: IRCNetwork.h:40
Here is a small explanation of how messages on IRC work, and how you can use this class to get useful...
Definition: Message.h:57
bool HasPerm(char cPerm) const
e.g. '@' for chanop.
bool AddPerm(char cPerm)
e.g. '@' for chanop.
CString GetPermStr() const
e.g. '@' for chanop.
bool RemPerm(char cPerm)
e.g. '@' for chanop.
String class that is used inside ZNC.
Definition: ZNCString.h:68
A dictionary for strings.
Definition: ZNCString.h:595
static const MCString EmptyMap
A static instance of an empty map.
Definition: ZNCString.h:606