Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ash
Discord Bot
Commits
54f87537
Unverified
Commit
54f87537
authored
Aug 17, 2019
by
tec
Browse files
resolve invalid votes sooner
parent
b19d64b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/voting.rs
View file @
54f87537
...
...
@@ -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
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment