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