1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00

golint part 1

This commit is contained in:
Kane York 2015-11-15 18:43:34 -08:00
parent aa6f090fcc
commit 66cc124e37
9 changed files with 136 additions and 112 deletions

View file

@ -74,20 +74,18 @@ func commandLineConsole() {
shell.Register("authorizeeveryone", func(args ...string) (string, error) {
if len(args) == 0 {
if server.Configuation.SendAuthToNewClients {
if server.Configuration.SendAuthToNewClients {
return "All clients are recieving auth challenges upon claiming a name.", nil
} else {
return "All clients are not recieving auth challenges upon claiming a name.", nil
}
return "All clients are not recieving auth challenges upon claiming a name.", nil
} else if args[0] == "on" {
server.Configuation.SendAuthToNewClients = true
server.Configuration.SendAuthToNewClients = true
return "All new clients will recieve auth challenges upon claiming a name.", nil
} else if args[0] == "off" {
server.Configuation.SendAuthToNewClients = false
server.Configuration.SendAuthToNewClients = false
return "All new clients will not recieve auth challenges upon claiming a name.", nil
} else {
return "Usage: authorizeeveryone [ on | off ]", nil
}
return "Usage: authorizeeveryone [ on | off ]", nil
})
shell.Register("panic", func(args ...string) (string, error) {