summaryrefslogtreecommitdiff
path: root/src/irc/irc_client.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-03-22 20:44:30 +0100
committerlouiz’ <louiz@louiz.org>2018-03-22 20:44:30 +0100
commitfaa33c1a712f98de4bafee821bde7eb270bbb7f7 (patch)
tree42ca35320f51e282094388f0df69e0e1fcbdf4f1 /src/irc/irc_client.cpp
parent9ce0166777fae8482da4bc22b0fe3fe43febd169 (diff)
downloadbiboumi-faa33c1a712f98de4bafee821bde7eb270bbb7f7.tar.gz
biboumi-faa33c1a712f98de4bafee821bde7eb270bbb7f7.tar.bz2
biboumi-faa33c1a712f98de4bafee821bde7eb270bbb7f7.tar.xz
biboumi-faa33c1a712f98de4bafee821bde7eb270bbb7f7.zip
Pass an IrcClient* to send_muc_leave instead of doing an other search
Diffstat (limited to 'src/irc/irc_client.cpp')
-rw-r--r--src/irc/irc_client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 5f93ea6..8f77e0d 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -965,7 +965,7 @@ void IrcClient::on_part(const IrcMessage& message)
iid.set_local(chan_name);
iid.set_server(this->hostname);
iid.type = Iid::Type::Channel;
- this->bridge.send_muc_leave(iid, *user_ptr, txt, self, true);
+ this->bridge.send_muc_leave(iid, *user_ptr, txt, self, true, {}, this);
}
}
@@ -982,7 +982,7 @@ void IrcClient::on_error(const IrcMessage& message)
IrcChannel* channel = pair.second.get();
if (!channel->joined)
continue;
- this->bridge.send_muc_leave(iid, *channel->get_self(), leave_message, true, false);
+ this->bridge.send_muc_leave(iid, *channel->get_self(), leave_message, true, false, {}, this);
}
this->channels.clear();
this->send_gateway_message("ERROR: " + leave_message);
@@ -1007,7 +1007,7 @@ void IrcClient::on_quit(const IrcMessage& message)
iid.set_local(chan_name);
iid.set_server(this->hostname);
iid.type = Iid::Type::Channel;
- this->bridge.send_muc_leave(iid, *user, txt, self, false);
+ this->bridge.send_muc_leave(iid, *user, txt, self, false, {}, this);
channel->remove_user(user);
}
}