mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Allow adding a server multiple times if a different port or pass is used
This also moves the check for multiple servers from CClient to CUser::AddServer(). The idea for this is from cnu, thanks. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1295 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -321,15 +321,11 @@ void CClient::UserCommand(const CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_pUser->FindServer(sServer)) {
|
||||
PutStatus("That server already exists");
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_pUser->AddServer(sLine.Token(1, true))) {
|
||||
PutStatus("Server added");
|
||||
} else {
|
||||
PutStatus("Unable to add that server");
|
||||
PutStatus("Perhaps the server is already added or openssl is disabled?");
|
||||
}
|
||||
} else if (sCommand.Equals("REMSERVER") || sCommand.Equals("DELSERVER")) {
|
||||
CString sServer = sLine.Token(1);
|
||||
|
||||
Reference in New Issue
Block a user