diff --git a/globals.go b/globals.go index 20a4e42..efe7c64 100644 --- a/globals.go +++ b/globals.go @@ -3,4 +3,5 @@ package main const ( MaxGroupsForUser uint32 = 8 MaxUsersInGroup uint32 = 12 + DirectMsgMaxCache ) diff --git a/http.go b/http.go index 71ef995..d14635b 100644 --- a/http.go +++ b/http.go @@ -564,7 +564,7 @@ func HttpHandleGroupDelete(response http.ResponseWriter, request *http.Request) response.WriteHeader(http.StatusAccepted) } -func HttpHandleGroupAddUser(response http.ResponseWriter, request *http.Request) { +func HttpHandleGroupAddUsers(response http.ResponseWriter, request *http.Request) { if !isMethodAllowed(&response, request) { return } diff --git a/main.go b/main.go index 48ddf6e..eee820a 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ func main() { http.HandleFunc("/mod/user/about", withCORS(HttpHandleUserModifyAbout)) http.HandleFunc("/mod/connection/accept", withCORS(HttpHandleUserAcceptConnection)) http.HandleFunc("/mod/connection/delete", withCORS(HttpHandleUserDeleteConnection)) - http.HandleFunc("/mod/group/addusers", withCORS(HttpHandleGroupAddUser)) + http.HandleFunc("/mod/group/addusers", withCORS(HttpHandleGroupAddUsers)) http.HandleFunc("/mod/group/removeusers", withCORS(HttpHandleGroupRemoveUser)) http.HandleFunc("/mod/group/color", withCORS(HttpHandleGroupChangeColor)) http.HandleFunc("/mod/group/owner", withCORS(HttpHandleGroupChangeOwner))