File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ type Config struct {
4848
4949 AllowMultipleCsnums string `xml:"allowMultipleCsnums"`
5050
51+ EnableHashCheck bool `xml:"enableHashCheck"`
52+
5153 ServerName string `xml:"serverName,omitempty"`
5254}
5355
Original file line number Diff line number Diff line change 5454 -->
5555 <allowMultipleCsnums >SameIPAddress</allowMultipleCsnums >
5656
57+ <!-- Require hashes to be submitted to log in -->
58+ <enableHashCheck >true</enableHashCheck >
59+
5760 <!-- Database Credentials -->
5861 <username >username</username >
5962 <password >password</password >
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ func (g *GameSpySession) login(command common.GameSpyCommand) {
197197 }
198198 }
199199
200- if g .GameName == "mariokartwii" {
200+ if g .GameName == "mariokartwii" && common . GetConfig (). EnableHashCheck {
201201 packIDStr , exists := command .OtherValues ["pack_id" ]
202202 if exists {
203203 logging .Info (g .ModuleName , "pack_id:" , aurora .Cyan (packIDStr ))
You can’t perform that action at this time.
0 commit comments