Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

125 nick bug respuestas #144

Merged
merged 3 commits into from
Apr 28, 2024
Merged

125 nick bug respuestas #144

merged 3 commits into from
Apr 28, 2024

Conversation

jdomingu98
Copy link
Owner

No description provided.

@jdomingu98 jdomingu98 added the bug Something isn't working label Apr 28, 2024
@jdomingu98 jdomingu98 requested a review from ruzafa8 April 28, 2024 14:22
@jdomingu98 jdomingu98 self-assigned this Apr 28, 2024
@jdomingu98 jdomingu98 linked an issue Apr 28, 2024 that may be closed by this pull request
Copy link
Collaborator

@ruzafa8 ruzafa8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo bien, el comentario lo resolveremos en otra PR si da tiempo

throw NicknameInUseException(this->_nickname);

if (!NickCommand::isValidNickname())
throw ErroneousNicknameException(this->_nickname);

if (user.isRegistered() && user.getNickname() != this->_nickname) {
std::vector<Channel> userChannels = server.getChannels();
for (std::vector<Channel>::iterator it = userChannels.begin(); it != userChannels.end(); it++) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esto se puede optimizar. Recorrer todos los canales del servidor puede ser muy costoso cuando solo queremos los del usuario.

@jdomingu98 jdomingu98 merged commit d99baa2 into master Apr 28, 2024
1 check passed
@jdomingu98 jdomingu98 deleted the 125-nick-bug-respuestas branch April 28, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NICK] [BUG] Respuestas
2 participants