From cf9fb00675cac902751f922018e4827f425dbca1 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Thu, 25 Jan 2018 19:12:23 -0600 Subject: Fix comparator logic for ordering by channel --- src/modules/m_banredirect.cpp | 6 +++--- 1 file 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; } }; -- cgit v1.2.3