Skip to content

Commit

Permalink
Ensure guild tag always upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokya committed Aug 14, 2024
1 parent 88234fe commit d276d93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/player/player/handlers/guild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,11 @@ impl Player {
return;
}

let guild_tag = create.guild_tag.to_uppercase();

if let Err(e) = create_guild(
&mut conn,
&create.guild_tag,
&guild_tag,
&create.guild_name,
&create.description,
)
Expand All @@ -251,7 +253,7 @@ impl Player {
map.finish_guild_creation(
player_id,
guild_create_members,
create.guild_tag,
guild_tag,
create.guild_name,
);
});
Expand Down

0 comments on commit d276d93

Please sign in to comment.