This commit is contained in:
iherman-
2026-05-23 21:50:54 +02:00
parent bed4006e90
commit 065f6ca10e
3 changed files with 9 additions and 3 deletions

View File

@@ -65,7 +65,8 @@ void Server::invite_cmd(User &client, std::istringstream &ss)
return ;
}
client_it->second.send("YOUVE BEEN INVITED YAAAAAAAYYYYY!!!!!!");
client_it->second.send(":" + client.getNick() + "!" + client.getUsername() + "@localhost INVITE " + client_it->second.getNick() + " :" + channel_it->second.getName());
client.send(std::string(":") + SERVER_NAME " 341 " + client.getNick() + " " + client_it->second.getNick() + " " + channel_it->second.getName());
channel_it->second.inviteMember(client_it->second);
}