segfault in function JOIN Fixed

This commit is contained in:
Samy BEN TAYEB 2025-06-18 00:20:54 +02:00
parent 2b3b6654e7
commit 150ada2f4e
4 changed files with 13 additions and 15 deletions

View file

@ -6,7 +6,7 @@
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/20 22:43:24 by rparodi #+# #+# */
/* Updated: 2025/06/17 23:51:54 by sben-tay ### ########.fr */
/* Updated: 2025/06/18 00:10:48 by sben-tay ### ########.fr */
/* */
/* ************************************************************************** */
@ -48,7 +48,7 @@ User *Channel::getOwner() const {
*
* @return list of Users in the channel
*/
std::list<User *> Channel::getUsers() const {
std::list<User *>& Channel::getUsers() {
return this->_users;
}