Remove some unused code for ipv6 from CServer (and from CUser)

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1294 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-12-19 13:43:56 +00:00
parent 979f2651f3
commit d254240866
4 changed files with 8 additions and 18 deletions
+4 -10
View File
@@ -730,7 +730,7 @@ bool CUser::DelServer(const CString& sName) {
return false;
}
bool CUser::AddServer(const CString& sName, bool bIPV6) {
bool CUser::AddServer(const CString& sName) {
if (sName.empty()) {
return false;
}
@@ -750,22 +750,16 @@ bool CUser::AddServer(const CString& sName, bool bIPV6) {
unsigned short uPort = strtoul(sPort.c_str(), NULL, 10);
CString sPass = sLine.Token(2, true);
return AddServer(sHost, uPort, sPass, bSSL, bIPV6);
return AddServer(sHost, uPort, sPass, bSSL);
}
bool CUser::AddServer(const CString& sName, unsigned short uPort, const CString& sPass, bool bSSL, bool bIPV6) {
bool CUser::AddServer(const CString& sName, unsigned short uPort, const CString& sPass, bool bSSL) {
#ifndef HAVE_LIBSSL
if (bSSL) {
return false;
}
#endif
#ifndef HAVE_IPV6
if (bIPV6) {
return false;
}
#endif
if (sName.empty()) {
return false;
}
@@ -774,7 +768,7 @@ bool CUser::AddServer(const CString& sName, unsigned short uPort, const CString&
uPort = 6667;
}
CServer* pServer = new CServer(sName, uPort, sPass, bSSL, bIPV6);
CServer* pServer = new CServer(sName, uPort, sPass, bSSL);
m_vServers.push_back(pServer);
CheckIRCConnect();