Skip to content

Commit

Permalink
that should do
Browse files Browse the repository at this point in the history
  • Loading branch information
jammer312 committed Jun 4, 2020
1 parent 4021240 commit 536c81b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions discord_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,18 +972,15 @@ func update_ban_override(server, ckey string, user *discordgo.User, tp int) (suc
}
msg = "database failure"
log.Println(server, ckey, tp, permissions);
log.Println(1)
if db_template("check_ban_override").exec(server, ckey, tp, permissions).count() > 0 {
populate_ban_overrides()
return true, "stronger override is in effect"
}
log.Println(2)
if db_template("promote_ban_override").exec(server, ckey, tp, permissions).count() > 0 {
populate_ban_overrides()
return true, "promoted existing override"
}
log.Println(3)
succ = db_template("add_ban_override").exec(server, ckey, tp, permissions).count() > 0
succ = db_template("add_ban_override").exec(server, ckey, permissions).count() > 0
if succ {
msg = "added new override"
}
Expand Down

0 comments on commit 536c81b

Please sign in to comment.