From 8dd885537f258d8ec17c3a479552ba2d926db6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 15 Nov 2017 17:19:28 +0100 Subject: [PATCH] Fixed incorrect comparison. --- src/channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel.cpp b/src/channel.cpp index bd67dad..f906527 100644 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -43,7 +43,7 @@ int NeoComm_join_channel(const char *channel_name) { } // if it already exists then just exit - if(channels.find(s_chan_name) == channels.end()) + if(channels.find(s_chan_name) not_eq channels.end()) return 1; dht::InfoHash chan_hash(s_chan_name);