Fixed incorrect comparison.

This commit is contained in:
Nicolás Ortega Froysa 2017-11-15 17:19:28 +01:00
parent 41df104955
commit 8dd885537f
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -43,7 +43,7 @@ int NeoComm_join_channel(const char *channel_name) {
} }
// if it already exists then just exit // 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; return 1;
dht::InfoHash chan_hash(s_chan_name); dht::InfoHash chan_hash(s_chan_name);