diff options
author | linuxdaemon <linuxdaemon@snoonet.org> | 2018-01-25 19:12:23 -0600 |
---|---|---|
committer | linuxdaemon <linuxdaemon@snoonet.org> | 2018-01-25 19:12:23 -0600 |
commit | cf9fb00675cac902751f922018e4827f425dbca1 (patch) | |
tree | 7c91001e9739f75acd9db76126fbc44d57b9632d /src/modules | |
parent | 8e5237cca1bf70ffe00291f48484d87b485908c8 (diff) |
Fix comparator logic for ordering by channel
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_banredirect.cpp | 6 |
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; } }; |