Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: znc/znc
base: f54d4d443f1e
...
head fork: znc/znc
compare: bf31091353c3
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/chansaver.cpp
View
4 modules/chansaver.cpp
@@ -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();
}

No commit comments for this range

Something went wrong with that request. Please try again.