Skip to content

Commit

Permalink
fix: an oof
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 2, 2023
1 parent 44d8eae commit 7a51271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dpp/guild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,15 @@ std::string guild_member::build_json(bool with_id) const {
}
}

if (gm_nickname_action) {
if (this->flags & gm_nickname_action) {
if (!this->nickname.empty()) {
j["nick"] = this->nickname;
} else {
j["nick"] = json::value_t::null;
}
}

if (gm_roles_action) {
if (this->flags & gm_roles_action) {
j["roles"] = {};
for (const auto & role : this->roles) {
j["roles"].push_back(std::to_string(role));
Expand Down

0 comments on commit 7a51271

Please sign in to comment.