summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-06-25 22:57:13 +0200
committerlouiz’ <louiz@louiz.org>2018-06-25 22:57:13 +0200
commit52166e07acd785b39c0da98be4c35e886b75c3c9 (patch)
treed175c7de382873bd0105ec8d16adc8ba0ac86642 /src/irc
parent870692dcdfa1a2a596981d4bff511a674e4a379a (diff)
downloadbiboumi-52166e07acd785b39c0da98be4c35e886b75c3c9.tar.gz
biboumi-52166e07acd785b39c0da98be4c35e886b75c3c9.tar.bz2
biboumi-52166e07acd785b39c0da98be4c35e886b75c3c9.tar.xz
biboumi-52166e07acd785b39c0da98be4c35e886b75c3c9.zip
Trivial syntax improvements
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 5a2f09b..b89ab1c 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -480,7 +480,7 @@ void IrcClient::send_quit_command(const std::string& reason)
void IrcClient::send_join_command(const std::string& chan_name, const std::string& password)
{
- if (this->welcomed == false)
+ if (!this->welcomed)
{
const auto it = std::find_if(begin(this->channels_to_join), end(this->channels_to_join),
[&chan_name](const auto& pair) { return std::get<0>(pair) == chan_name; });
@@ -497,7 +497,7 @@ void IrcClient::send_join_command(const std::string& chan_name, const std::strin
bool IrcClient::send_channel_message(const std::string& chan_name, const std::string& body)
{
IrcChannel* channel = this->get_channel(chan_name);
- if (channel->joined == false)
+ if (!channel->joined)
{
log_warning("Cannot send message to channel ", chan_name, ", it is not joined");
return false;