Make /msg *status Jump / connect a no-op if the user has no server

This patch is from SilverLeo once again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@954 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-02-10 17:50:37 +00:00
parent ef9018da7b
commit 8581b34778

View File

@@ -810,6 +810,11 @@ void CClient::UserCommand(const CString& sLine) {
} else if (sCommand.CaseCmp("JUMP") == 0 ||
sCommand.CaseCmp("CONNECT") == 0) {
if (m_pUser) {
if (!m_pUser->HasServers()) {
PutStatus("You don't have any servers added.");
return;
}
if (m_pIRCSock) {
m_pIRCSock->Quit();
PutStatus("Jumping to the next server in the list...");