Unverified Commit 54f87537 authored by tec's avatar tec

resolve invalid votes sooner

parent b19d64b6
......@@ -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;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment