summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 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)