diff options
author | louiz’ <louiz@louiz.org> | 2016-08-18 21:13:42 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-08-18 21:13:42 +0200 |
commit | 7d05f9b6aedd9153bd7787a5a83b9840b1991a7e (patch) | |
tree | 6ca12724ee0d00eb8816002f6da47b2532b9aec4 | |
parent | 4c8fb9a0e314db88dec1f105144aadafc5796ef2 (diff) | |
download | biboumi-7d05f9b6aedd9153bd7787a5a83b9840b1991a7e.tar.gz biboumi-7d05f9b6aedd9153bd7787a5a83b9840b1991a7e.tar.bz2 biboumi-7d05f9b6aedd9153bd7787a5a83b9840b1991a7e.tar.xz biboumi-7d05f9b6aedd9153bd7787a5a83b9840b1991a7e.zip |
Fix the author of the IRC invite
-rw-r--r-- | src/irc/irc_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index e4b6377..4cd437d 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -974,13 +974,13 @@ void IrcClient::on_kick(const IrcMessage& message) void IrcClient::on_invite(const IrcMessage& message) { - const std::string& author = message.arguments[0]; + IrcUser author(message.prefix); Iid iid; iid.set_local(message.arguments[1]); iid.set_server(this->hostname); iid.type = Iid::Type::Channel; - this->bridge.send_xmpp_invitation(iid, author); + this->bridge.send_xmpp_invitation(iid, author.nick); } void IrcClient::on_mode(const IrcMessage& message) |