remove sentry + loginkey if login is wrong
This commit is contained in:
@@ -164,6 +164,7 @@ func (d *DemoMatchLoader) Setup(username string, password string, authCode strin
|
||||
return err
|
||||
}
|
||||
}
|
||||
log.Debugf("%+v, %+v", d.steamLogin, d)
|
||||
|
||||
d.client = steam.NewClient()
|
||||
d.matchRecv = make(chan *protobuf.CMsgGCCStrike15V2_MatchList, 500)
|
||||
@@ -214,6 +215,8 @@ func (d *DemoMatchLoader) steamEventHandler() {
|
||||
case steamlang.EResult_AccountLogonDenied:
|
||||
log.Fatalf("[DL] Please provide AuthCode with --authcode")
|
||||
case steamlang.EResult_InvalidPassword:
|
||||
os.Remove(d.sentryFile)
|
||||
os.Remove(d.loginKey)
|
||||
log.Fatalf("[DL] Steam login wrong")
|
||||
}
|
||||
case *steam.DisconnectedEvent:
|
||||
|
Reference in New Issue
Block a user