mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Move IRCConnectEnabled to each network instead of a global user setting
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user