Fixing build issues
This commit is contained in:
parent
7f40c20e2c
commit
5af3936660
5
web.go
5
web.go
|
@ -53,7 +53,12 @@ func GetWebAddress(user *gumble.User) {
|
|||
if client_token[user.Name] != "" {
|
||||
token_client[client_token[user.Name]] = ""
|
||||
}
|
||||
// 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
|
||||
dj.SendPrivateMessage(user, fmt.Sprintf(WEB_ADDRESS, getIP(), client_token[user.Name], getIP(), client_token[user.Name]))
|
||||
}
|
||||
|
|
Reference in a new issue