mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user