diff --git a/src/voting.rs b/src/voting.rs index 97aa58ea8632cb227661bf171efb11d37560d8f7..2960c0f2c68972b67cd8238287938a2746ed14ff 100644 --- a/src/voting.rs +++ b/src/voting.rs @@ -328,6 +328,7 @@ pub fn reaction_add(ctx: Context, add_reaction: channel::Reaction) { if let Err(why) = add_reaction.delete(&ctx) { println!("Error deleting react: {:?}", why); }; + return; } } } @@ -337,6 +338,7 @@ pub fn reaction_add(ctx: Context, add_reaction: channel::Reaction) { if let Err(why) = add_reaction.delete(&ctx) { println!("Error deleting react: {:?}", why); }; + return; } if user.id.0 != config::BOT_ID { update_motion(&ctx, &mut message, &user, "add", add_reaction); @@ -350,6 +352,7 @@ pub fn reaction_add(ctx: Context, add_reaction: channel::Reaction) { if let Err(why) = add_reaction.delete(&ctx) { println!("Error deleting react: {:?}", why); }; + return; } } }