Fixing build issues
This commit is contained in:
parent
7f40c20e2c
commit
5af3936660
7
web.go
7
web.go
|
@ -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]))
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue