Move IRCConnectEnabled to each network instead of a global user setting

This commit is contained in:
Kyle Fuller
2012-01-11 14:06:11 +00:00
parent 4abf3feae4
commit 3d7d1793aa
11 changed files with 60 additions and 44 deletions

View File

@@ -302,8 +302,7 @@ void CClient::UserCommand(CString& sLine) {
PutStatus("Connecting...");
}
m_pUser->SetIRCConnectEnabled(true);
m_pNetwork->CheckIRCConnect();
m_pNetwork->SetIRCConnectEnabled(true);
return;
} else if (sCommand.Equals("DISCONNECT")) {
if (!m_pNetwork) {
@@ -316,7 +315,7 @@ void CClient::UserCommand(CString& sLine) {
GetIRCSock()->Quit(sQuitMsg);
}
m_pUser->SetIRCConnectEnabled(false);
m_pNetwork->SetIRCConnectEnabled(false);
PutStatus("Disconnected from IRC. Use 'connect' to reconnect.");
return;
} else if (sCommand.Equals("ENABLECHAN")) {