AY %!s(int64=4) %!d(string=hai) anos
pai
achega
b5a1124637
Modificáronse 3 ficheiros con 3 adicións e 1 borrados
  1. BIN=BIN
      __debug_bin
  2. 2 0
      mc_add.go
  3. 1 1
      server/ops.json

BIN=BIN
__debug_bin


+ 2 - 0
mc_add.go

@@ -7,6 +7,8 @@ import (
 	"time"
 )
 
+//TODO: implement duplicate entry check.
+
 func AddBanIP(w http.ResponseWriter, r *http.Request) {
 	IP, _ := mv(r, "ip", false)
 	Created := currentTime()

+ 1 - 1
server/ops.json

@@ -1 +1 @@
-[]
+[{"uuid":"3d1c0ed1-d4d0-42ae-ac5e-a7557d5a6c4f","name":"ALAN","level":3,"bypassesPlayerLimit":true},{"uuid":"3d1c0ed1-d4d0-42ae-ac5e-a7557d5a6c4f","name":"ALAN","level":3,"bypassesPlayerLimit":true}]