summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-09-06 18:57:35 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-09-06 18:57:35 +0200
commit73573ebb2abb2aea119a6c99e2bf4a302f2ba834 (patch)
treeb20ce0bc8afa600b71a5be2381b67f774fdc17c6 /src/irc
parent4cfcc79114d89096219039104674d35ca1aba5ca (diff)
downloadbiboumi-73573ebb2abb2aea119a6c99e2bf4a302f2ba834.tar.gz
biboumi-73573ebb2abb2aea119a6c99e2bf4a302f2ba834.tar.bz2
biboumi-73573ebb2abb2aea119a6c99e2bf4a302f2ba834.tar.xz
biboumi-73573ebb2abb2aea119a6c99e2bf4a302f2ba834.zip
Trivial cleanup in irc_client.cpp
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 6ab19b7..29f0b54 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -492,9 +492,8 @@ void IrcClient::on_rpl_listend(const IrcMessage&)
{
}
-void IrcClient::empty_motd(const IrcMessage& message)
+void IrcClient::empty_motd(const IrcMessage&)
{
- (void)message;
this->motd.erase();
}
@@ -507,16 +506,13 @@ void IrcClient::on_motd_line(const IrcMessage& message)
this->motd += body+"\n";
}
-void IrcClient::send_motd(const IrcMessage& message)
+void IrcClient::send_motd(const IrcMessage&)
{
- (void)message;
this->bridge->send_xmpp_message(this->hostname, "", this->motd);
}
void IrcClient::on_topic_received(const IrcMessage& message)
{
- if (message.arguments.size() < 2)
- return;
const std::string chan_name = utils::tolower(message.arguments[message.arguments.size() - 2]);
IrcChannel* channel = this->get_channel(chan_name);
channel->topic = message.arguments[message.arguments.size() - 1];
@@ -709,9 +705,9 @@ void IrcClient::on_nick(const IrcMessage& message)
void IrcClient::on_kick(const IrcMessage& message)
{
+ const std::string chan_name = utils::tolower(message.arguments[0]);
const std::string target = message.arguments[1];
const std::string reason = message.arguments[2];
- const std::string chan_name = utils::tolower(message.arguments[0]);
IrcChannel* channel = this->get_channel(chan_name);
if (!channel->joined)
return ;