Fix the author of the IRC invite

This commit is contained in:
louiz’
2016-08-18 21:13:42 +02:00
parent 4c8fb9a0e3
commit 7d05f9b6ae
+2 -2
View File
@@ -974,13 +974,13 @@ void IrcClient::on_kick(const IrcMessage& message)
void IrcClient::on_invite(const IrcMessage& message) void IrcClient::on_invite(const IrcMessage& message)
{ {
const std::string& author = message.arguments[0]; IrcUser author(message.prefix);
Iid iid; Iid iid;
iid.set_local(message.arguments[1]); iid.set_local(message.arguments[1]);
iid.set_server(this->hostname); iid.set_server(this->hostname);
iid.type = Iid::Type::Channel; 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) void IrcClient::on_mode(const IrcMessage& message)