summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-09-04 13:08:22 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-09-04 13:08:22 +0200
commite3fc46af3ea3999ea5eea7274f038f4f03357e0e (patch)
tree5d3115566e6aa9e090a7a01f82381f988e0440da /src/mode.cpp
parent117db983d2ce28aeb1d1e0d36879c4ea1c34f10a (diff)
Split ModeParser::DisplayListMode() into two parts
ShowListModeList() sends the list of one listmode to a user, DisplayListMode() calls it for each mode letter
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index ce4cb5b87..5642e35b6 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -603,11 +603,19 @@ void ModeParser::DisplayListModes(User* user, Channel* chan, const std::string&
if (!mh || !mh->IsListMode())
return;
+ ShowListModeList(user, chan, mh);
+ }
+}
+
+void ModeParser::ShowListModeList(User* user, Channel* chan, ModeHandler* mh)
+{
+ {
ModResult MOD_RESULT;
FIRST_MOD_RESULT(OnRawMode, MOD_RESULT, (user, chan, mh, "", true));
if (MOD_RESULT == MOD_RES_DENY)
- continue;
+ return;
+ unsigned char mletter = mh->GetModeChar();
bool display = true;
if (!user->HasPrivPermission("channels/auspex") && ServerInstance->Config->HideModeLists[mletter] && (chan->GetPrefixValue(user) < HALFOP_VALUE))
{