Philipp15b / go-steam

Steam's protocol in Go to allow automation of different actions on the Steam network without running an actual Steam client. Includes APIs for friends, chatting, trading, trade offers and TF2 crafting.
https://pkg.go.dev/github.com/Philipp15b/go-steam/v3
Other
388 stars 131 forks source link

Allow for handling of LoggedOnEvent manually #50

Closed belak closed 8 years ago

belak commented 8 years ago

Currently, no matter what in the LoggedOnEvent if the result isn't "OK", a.client.Fatalf("Login error: %v", result) is called. There's no simple way to determine if it was a SteamAuth error or an invalid password. It would be nice to handle this in a way that wouldn't involve parsing the error or manually pulling the information out of the packet and ignoring an error.