summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-03-02 23:19:04 +0100
committerlouiz’ <louiz@louiz.org>2020-03-02 23:20:47 +0100
commit76b81cec5501e80039c02eaa761817a53de1c23b (patch)
tree3d5b578a2bee0124f8527dd69a5c9b5ea03052d8 /src
parentf06fac2a13e374a81dfc721232f1af18ce5f90cf (diff)
downloadbiboumi-76b81cec5501e80039c02eaa761817a53de1c23b.tar.gz
biboumi-76b81cec5501e80039c02eaa761817a53de1c23b.tar.bz2
biboumi-76b81cec5501e80039c02eaa761817a53de1c23b.tar.xz
biboumi-76b81cec5501e80039c02eaa761817a53de1c23b.zip
Small trivial readability improvement
Diffstat (limited to 'src')
-rw-r--r--src/bridge/bridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 71c0ea4..bfcb8fe 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -185,7 +185,7 @@ bool Bridge::join_irc_channel(const Iid& iid, std::string nickname,
auto res_in_chan = this->is_resource_in_chan(ChannelKey{iid.get_local(), hostname}, resource);
if (!res_in_chan)
this->add_resource_to_chan(ChannelKey{iid.get_local(), hostname}, resource);
- if (irc->is_channel_joined(iid.get_local()) == false)
+ if (!irc->is_channel_joined(iid.get_local()))
{
irc->send_join_command(iid.get_local(), password);
return true;