execute function segfault fixed
This commit is contained in:
parent
cc9fdebc07
commit
c94837e9dc
2 changed files with 4 additions and 3 deletions
|
|
@ -143,7 +143,8 @@ void cmd::dispatch(::User *user, Channel *channel, Server *server, std::string &
|
|||
case 't':
|
||||
if (command_name == "topic") {
|
||||
Topic(user, channel, server, line).execute();
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'w':
|
||||
if (command_name == "whois") {
|
||||
Whois(user, channel, server, line).execute();
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/05/24 17:29:48 by rparodi #+# #+# */
|
||||
/* Updated: 2025/06/19 11:21:59 by rparodi ### ########.fr */
|
||||
/* Updated: 2025/06/19 11:42:56 by sben-tay ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ void List::execute() {
|
|||
std::ostringstream msg322; msg322 << ":localhost 322 " << _sender->getNickname()
|
||||
<< " " << (*it)->getName() << " " <<
|
||||
(*it)->getUsers().size() <<
|
||||
" :" << _channel->getTopic() << "\r\n";
|
||||
" :" << (*it)->getTopic() << "\r\n";
|
||||
this->_sender->appendToWriteBuffer(msg322.str());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue