aboutsummaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-04-05 23:37:33 +0100
committerGravatar Sadie Powell2022-04-05 23:37:33 +0100
commit72372136c46e1863ba09140f1d79e2e53270b86b (patch)
tree05468ef0c90e6caa9eeb4ce9b74fd88f77c901be /src/mode.cpp
parentRelease v4.0.0 alpha 9. (diff)
parentUse consistent xline messages locally (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index a005f81fb..3b3779e97 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -271,11 +271,6 @@ ModeAction ModeParser::TryMode(User* user, User* targetuser, Channel* chan, Mode
if (MOD_RESULT == MOD_RES_PASSTHRU)
{
unsigned int neededrank = mh->GetLevelRequired(mcitem.adding);
- /* Compare our rank on the channel against the rank of the required prefix,
- * allow if >= ours. Because mIRC and xchat throw a tizz if the modes shown
- * in NAMES(X) are not in rank order, we know the most powerful mode is listed
- * first, so we don't need to iterate, we just look up the first instead.
- */
unsigned int ourrank = chan->GetPrefixValue(user);
if (ourrank < neededrank)
{