From d276d93fc40548ccdee7c039c959fad8537c8ad6 Mon Sep 17 00:00:00 2001 From: Richard Leek Date: Wed, 14 Aug 2024 16:59:54 +0200 Subject: [PATCH] Ensure guild tag always upper case --- src/player/player/handlers/guild.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/player/player/handlers/guild.rs b/src/player/player/handlers/guild.rs index 6421fc3..28c3830 100644 --- a/src/player/player/handlers/guild.rs +++ b/src/player/player/handlers/guild.rs @@ -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, ) @@ -251,7 +253,7 @@ impl Player { map.finish_guild_creation( player_id, guild_create_members, - create.guild_tag, + guild_tag, create.guild_name, ); });