From 8581b347784898e5c4e653313f79ca3cd1058f71 Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 10 Feb 2008 17:50:37 +0000 Subject: [PATCH] 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 --- Client.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Client.cpp b/Client.cpp index 0d2a7c65..ab1aa330 100644 --- a/Client.cpp +++ b/Client.cpp @@ -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...");