Permalink
Browse files

Merge commit 'refs/pull/231/head' of github.com:znc/znc

  • Loading branch information...
DarthGandalf committed Nov 7, 2012
2 parents f54d4d4 + 7f865cb commit bf31091353c397af4470f5fd6d73886fd42b3a9f
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/chansaver.cpp
View
@@ -59,14 +59,14 @@ class CChanSaverMod : public CModule {
}
virtual void OnJoin(const CNick& Nick, CChan& Channel) {
- if (Nick.GetNick() == m_pNetwork->GetIRCNick().GetNick()) {
+ if (Nick.GetNick() == m_pNetwork->GetIRCNick().GetNick() && !Channel.InConfig()) {
Channel.SetInConfig(true);
CZNC::Get().WriteConfig();
}
}
virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) {
- if (Nick.GetNick() == m_pNetwork->GetIRCNick().GetNick()) {
+ if (Nick.GetNick() == m_pNetwork->GetIRCNick().GetNick() && Channel.InConfig()) {
Channel.SetInConfig(false);
CZNC::Get().WriteConfig();
}

0 comments on commit bf31091

Please sign in to comment.