diff options
author | Peter Powell <petpow@saberuk.com> | 2018-11-16 22:13:11 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-11-16 22:13:11 +0000 |
commit | d50a4bf02d4875c24327b01ba01883c831f44fc1 (patch) | |
tree | d10c9c54c1beb175581c79b7ed5cb9be9fac19d1 /src | |
parent | 6adca3e0997781eae4adb02f19a2f8c312512ae1 (diff) |
Fix an inverted condition in the cgiirc module.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_cgiirc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<uint16_t>(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<uint16_t>(sport->second); |