From d50a4bf02d4875c24327b01ba01883c831f44fc1 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 16 Nov 2018 22:13:11 +0000 Subject: Fix an inverted condition in the cgiirc module. --- src/modules/m_cgiirc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index d67b09c39..de9cec8cd 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -403,7 +403,7 @@ class ModuleCgiIRC return; WebIRC::FlagMap::const_iterator cport = flags->find("remote-port"); - if (cport == flags->end()) + if (cport != flags->end()) { // If we can't parse the port then just give up. uint16_t port = ConvToNum(cport->second); @@ -429,7 +429,7 @@ class ModuleCgiIRC } WebIRC::FlagMap::const_iterator sport = flags->find("local-port"); - if (sport == flags->end()) + if (sport != flags->end()) { // If we can't parse the port then just give up. uint16_t port = ConvToNum(sport->second); -- cgit v1.2.3