improve stickychan

* save registry on every stick/unstick action
* auto-save if channel key changes
This commit is contained in:
Thomas Kriechbaumer
2015-02-23 11:42:20 +00:00
parent be5f26ba18
commit 8f3f5b4dcc
2 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ void CChan::ModeChange(const CString& sModes, const CNick* pOpNick) {
// This is called when we join (ZNC requests the channel modes
// on join) *and* when someone changes the channel keys.
// We ignore channel key "*" because of some broken nets.
if (uMode == 'k' && !bNoChange && bAdd && sArg != "*") {
if (uMode == M_Key && !bNoChange && bAdd && sArg != "*") {
SetKey(sArg);
}
}