Removed default-checked yet quite useless and annoying "[add ]your current ip" checkbox from webadmin's edit user page. The new default skin never had it, this completely removes it from the other skins and from the module.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1722 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
cflakes
2010-01-25 21:54:55 +00:00
parent cb0cc03e2e
commit f06d68a77c
4 changed files with 0 additions and 25 deletions

View File

@@ -830,14 +830,6 @@ bool CWebAdminSock::UserPage(CString& sPageRet, CUser* pUser) {
l["CTCP"] = it2->first + " " + it2->second;
}
if (pUser == CZNC::Get().FindUser(GetUser())) {
CString sIP = GetRemoteIP();
if (!sIP.empty()) {
m_Template["OwnIP"] = sIP.Token(0, false, ".") + "." + sIP.Token(1, false, ".") + "." + sIP.Token(2, false, ".") + ".*";
}
}
const vector<CChan*>& Channels = pUser->GetChans();
for (unsigned int c = 0; c < Channels.size(); c++) {
CChan* pChan = Channels[c];
@@ -1060,10 +1052,6 @@ CUser* CWebAdminSock::GetNewUser(CString& sPageRet, CUser* pUser) {
pNewUser->AddAllowedHost("*");
}
if (HasParam("ownip")) {
pNewUser->AddAllowedHost(GetParam("ownip"));
}
GetRawParam("ctcpreplies").Split("\n", vsArgs);
for (a = 0; a < vsArgs.size(); a++) {
CString sReply = vsArgs[a].TrimRight_n("\r");