aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar linuxdaemon2018-01-25 19:12:23 -0600
committerGravatar linuxdaemon2018-01-25 19:12:23 -0600
commitcf9fb00675cac902751f922018e4827f425dbca1 (patch)
tree7c91001e9739f75acd9db76126fbc44d57b9632d /src/modules
parentMake sure banredirect metadata can not be duplicated (diff)
downloadinspircd++-cf9fb00675cac902751f922018e4827f425dbca1.tar.gz
inspircd++-cf9fb00675cac902751f922018e4827f425dbca1.tar.bz2
inspircd++-cf9fb00675cac902751f922018e4827f425dbca1.zip
Fix comparator logic for ordering by channel
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_banredirect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp
index a0c9bc750..64a5855ae 100644
--- a/src/modules/m_banredirect.cpp
+++ b/src/modules/m_banredirect.cpp
@@ -43,10 +43,10 @@ class BanRedirectEntry
bool operator<(const BanRedirectEntry& other) const
{
- if (this->targetchan < other.targetchan)
- return true;
+ if (targetchan != other.targetchan)
+ return targetchan < other.targetchan;
- return this->banmask < other.banmask;
+ return banmask < other.banmask;
}
};