mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Added AttachUser()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@499 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
13
Chan.cpp
13
Chan.cpp
@@ -125,8 +125,17 @@ void CChan::SendBuffer() {
|
||||
}
|
||||
|
||||
void CChan::DetachUser() {
|
||||
m_pUser->PutUser(":" + m_pUser->GetIRCNick().GetNickMask() + " PART " + GetName());
|
||||
m_bDetached = true;
|
||||
if (!m_bDetached) {
|
||||
m_pUser->PutUser(":" + m_pUser->GetIRCNick().GetNickMask() + " PART " + GetName());
|
||||
m_bDetached = true;
|
||||
}
|
||||
}
|
||||
|
||||
void CChan::AttachUser() {
|
||||
if (m_bDetached) {
|
||||
m_pUser->PutUser(":" + m_pUser->GetIRCNick().GetNickMask() + " JOIN " + GetName());
|
||||
m_bDetached = false;
|
||||
}
|
||||
}
|
||||
|
||||
CString CChan::GetModeString() const {
|
||||
|
||||
Reference in New Issue
Block a user