Fix #1008: Channel keys get saved in a very wrong way

This commit is contained in:
J-P Nurmi
2015-07-27 01:38:02 +02:00
parent 8a831adf1b
commit b2c83321ef
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ void CChan::Cycle() const {
}
void CChan::JoinUser(const CString& sKey) {
if (!sKey.empty()) {
if (!IsOn() && !sKey.empty()) {
SetKey(sKey);
}
m_pNetwork->PutIRC("JOIN " + GetName() + " " + GetKey());