Skip to content

Commit

Permalink
remove old db code
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Nov 10, 2024
1 parent bd59313 commit 058a171
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions fact/playerDB.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"ChatWire/cfg"
"ChatWire/constants"
"ChatWire/cwlog"
"ChatWire/disc"
"ChatWire/glob"
)

Expand Down Expand Up @@ -384,10 +383,6 @@ func LoadPlayers(bootMode, minimize, clearBans bool) {
glob.PlayerListLock.Lock()
var removed int

if disc.Guild != nil && strings.EqualFold(cfg.Local.Callsign, cfg.Global.PrimaryServer) {
cwlog.DoLogCW("Updating Discord roles...")
}

for pname := range tempData {

if clearBans {
Expand Down Expand Up @@ -433,12 +428,6 @@ func LoadPlayers(bootMode, minimize, clearBans bool) {
tempData[pname].Level = 3
}
if bootMode {
//If primary server, update discord roles
/*
if strings.EqualFold(cfg.Local.Callsign, cfg.Global.PrimaryServer) {
go AutoPromote(pname, true, false)
}
*/
didBan = AddPlayer(pname, tempData[pname].Level, tempData[pname].ID, tempData[pname].Creation, tempData[pname].LastSeen, tempData[pname].BanReason, tempData[pname].SusScore, tempData[pname].Minutes, false)
} else if !bootMode {
didBan = AddPlayer(pname, tempData[pname].Level, tempData[pname].ID, tempData[pname].Creation, tempData[pname].LastSeen, tempData[pname].BanReason, tempData[pname].SusScore, tempData[pname].Minutes, doBan)
Expand Down

0 comments on commit 058a171

Please sign in to comment.