mirror of
https://github.com/znc/znc.git
synced 2026-07-06 18:01:21 +02:00
Added GetOptions()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@497 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -275,6 +275,24 @@ void CChan::ModeChange(const CString& sModes, const CString& sOpNick) {
|
||||
}
|
||||
}
|
||||
|
||||
CString CChan::GetOptions() const {
|
||||
CString sRet;
|
||||
|
||||
if (IsDetached()) {
|
||||
sRet += (sRet.empty()) ? "Detached" : ", Detached";
|
||||
}
|
||||
|
||||
if (AutoCycle()) {
|
||||
sRet += (sRet.empty()) ? "AutoCycle" : ", AutoCycle";
|
||||
}
|
||||
|
||||
if (KeepBuffer()) {
|
||||
sRet += (sRet.empty()) ? "KeepBuffer" : ", KeepBuffer";
|
||||
}
|
||||
|
||||
return sRet;
|
||||
}
|
||||
|
||||
CString CChan::GetModeArg(unsigned char uMode) const {
|
||||
if (uMode) {
|
||||
map<unsigned char, CString>::const_iterator it = m_musModes.find(uMode);
|
||||
|
||||
Reference in New Issue
Block a user