summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlinuxdaemon <linuxdaemon@snoonet.org>2018-01-25 19:12:23 -0600
committerlinuxdaemon <linuxdaemon@snoonet.org>2018-01-25 19:12:23 -0600
commitcf9fb00675cac902751f922018e4827f425dbca1 (patch)
tree7c91001e9739f75acd9db76126fbc44d57b9632d /src
parent8e5237cca1bf70ffe00291f48484d87b485908c8 (diff)
Fix comparator logic for ordering by channel
Diffstat (limited to 'src')
-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;
}
};