Skip to content

Commit 2de3a21

Browse files
committed
cleanup
1 parent 83d0ea2 commit 2de3a21

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ func MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
374374
}
375375
cordnamelen := len(cordname)
376376
if cordnamelen > 0 {
377-
cordname = fmt.Sprintf("%s", fnamereduced)
377+
cordname = fnamereduced
378378
} else {
379379
cordname = fmt.Sprintf("ID#%s", m.Author.ID)
380380
}

support/pipeHandle.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -598,19 +598,8 @@ func handleBan(NoDS string, NoDSlist []string, NoDSlistlen int) bool {
598598
if strings.Contains(NoDS, "Reason") {
599599

600600
reasonList := strings.Split(NoDS, "Reason: ")
601-
602-
//Report bans
603-
if strings.EqualFold(cfg.Global.PrimaryServer, cfg.Local.Callsign) {
604-
//buf := fmt.Sprintf("M45 ban: %v, Reason: %v", trustname, reasonList[1])
605-
//fact.CMS(cfg.Global.Discord.ReportChannel, buf)
606-
}
607-
608601
fact.PlayerSetBanReason(trustname, reasonList[1], false)
609602
} else {
610-
if strings.EqualFold(cfg.Global.PrimaryServer, cfg.Local.Callsign) {
611-
//buf := fmt.Sprintf("M45 ban: %v", trustname)
612-
//fact.CMS(cfg.Global.Discord.ReportChannel, buf)
613-
}
614603
fact.PlayerLevelSet(trustname, -1, false)
615604
}
616605
}

0 commit comments

Comments
 (0)