From 986d2f19c941fc79254b647539407d8b1ab95233 Mon Sep 17 00:00:00 2001 From: Daragh Downes Date: Mon, 16 Sep 2024 19:46:12 +0100 Subject: [PATCH] Revert "fix: take out of else, should run regardless" This reverts commit cfb5d95be4487ffaa95af7db0b6f3dbe08b08395. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d5869de..ea8d3b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,8 +49,7 @@ impl EventHandler for Handler { if let Err(e) = new_member.add_roles(&ctx, &roles).await { println!("{:?}", e); } - } - if let Some(name) = new_member.guild_id.name(&ctx) { + } else if let Some(name) = new_member.guild_id.name(&ctx) { let msg = format!( "Welcome to the {} server! \n\ Sign up on ulwolves and go to #bot_commands and do /link_wolves to get full access",