mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Make sure the last nick in the chan is us before we auto-cycle
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@21 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
3
Chan.cpp
3
Chan.cpp
@@ -206,8 +206,9 @@ bool CChan::RemNick(const string& sNick) {
|
||||
|
||||
delete it->second;
|
||||
m_msNicks.erase(it);
|
||||
CNick* pNick = m_msNicks.begin()->second;
|
||||
|
||||
if ((m_msNicks.size() == 1) && (!m_msNicks.begin()->second->IsOp())) {
|
||||
if ((m_msNicks.size() == 1) && (!pNick->IsOp()) && (strcasecmp(pNick->GetNick().c_str(), m_pUser->GetCurNick().c_str()) == 0)) {
|
||||
Cycle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user