~vanhoof/+junk/znc

« back to all changes in this revision

Viewing changes to Chan.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2011-02-06 17:41:38 UTC
  • mfrom: (21.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110206174138-ush4l5mkr4wg738n
Tags: 0.096-2
* Merge 0.092-3~bpo50+1 changelog.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
void CChan::Clone(CChan& chan) {
73
73
        // We assume that m_sName and m_pUser are equal
74
 
        SetBufferCount(chan.GetBufferCount());
 
74
        SetBufferCount(chan.GetBufferCount(), true);
75
75
        SetKeepBuffer(chan.KeepBuffer());
76
76
        SetKey(chan.GetKey());
77
77
        SetDefaultModes(chan.GetDefaultModes());
91
91
        }
92
92
}
93
93
 
 
94
bool CChan::SetBufferCount(unsigned int u, bool bForce) {
 
95
        if (!bForce && u > CZNC::Get().GetMaxBufferSize())
 
96
                return false;
 
97
        m_uBufferCount = u;
 
98
        return true;
 
99
}
 
100
 
94
101
void CChan::Cycle() const {
95
102
        m_pUser->PutIRC("PART " + GetName() + "\r\nJOIN " + GetName() + " " + GetKey());
96
103
}