Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-28 17:07:21 +01:00
parent 7f40c20e2c
commit 5af3936660

7
web.go
View file

@ -53,7 +53,12 @@ func GetWebAddress(user *gumble.User) {
if client_token[user.Name] != "" { if client_token[user.Name] != "" {
token_client[client_token[user.Name]] = "" token_client[client_token[user.Name]] = ""
} }
client_token[user.Name] = randSeq(10) // dealing with collisions
var firstLoop = true
for !firstLoop && token_client[client_token[user.Name]] == "" {
client_token[user.Name] = randSeq(10)
firstLoop = false
}
token_client[client_token[user.Name]] = user.Name token_client[client_token[user.Name]] = user.Name
dj.SendPrivateMessage(user, fmt.Sprintf(WEB_ADDRESS, getIP(), client_token[user.Name], getIP(), client_token[user.Name])) dj.SendPrivateMessage(user, fmt.Sprintf(WEB_ADDRESS, getIP(), client_token[user.Name], getIP(), client_token[user.Name]))
} }