summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp5
-rw-r--r--src/mode.cpp7
2 files changed, 0 insertions, 12 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index a922543a3..af8a15f43 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -457,11 +457,6 @@ void ServerConfig::Fill()
DisabledCModes[*p - 'A'] = 1;
}
- memset(HideModeLists, 0, sizeof(HideModeLists));
- modes = ConfValue("security")->getString("hidemodes");
- for (std::string::const_iterator p = modes.begin(); p != modes.end(); ++p)
- HideModeLists[(unsigned char) *p] = true;
-
std::string v = security->getString("announceinvites");
if (v == "ops")
diff --git a/src/mode.cpp b/src/mode.cpp
index c70f474f7..0d3de3890 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -493,14 +493,7 @@ void ModeParser::ShowListModeList(User* user, Channel* chan, ModeHandler* mh)
if (MOD_RESULT == MOD_RES_DENY)
return;
- unsigned char mletter = mh->GetModeChar();
bool display = true;
- if (!user->HasPrivPermission("channels/auspex") && ServerInstance->Config->HideModeLists[mletter] && (chan->GetPrefixValue(user) < HALFOP_VALUE))
- {
- user->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s :You do not have access to view the +%c list",
- chan->name.c_str(), mletter);
- display = false;
- }
// Ask mode watchers whether it's OK to show the list
std::pair<ModeWatchIter, ModeWatchIter> itpair = modewatchermap.equal_range(mh->name);