Skip to content

Commit

Permalink
fix(invite): remove invite on partMember call
Browse files Browse the repository at this point in the history
  • Loading branch information
mxafi authored and liocle committed Mar 22, 2024
1 parent 1c26af6 commit ae35468
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/channel/Channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ int Channel::partMember(Client& client) {
LOG_DEBUG("Channel::partMember: client " << client.getNickname() << " was an operator, removing");
setOperatorStatus(client, false);
}
uninvite(client);
members_.erase(it);
if (operators_.empty()) {
LOG_DEBUG("Channel::partMember: no operators left, a new operator should be assigned: " << name_);
Expand Down

0 comments on commit ae35468

Please sign in to comment.