Add support to disable chat join messages. Closes #1582 (#1743)

This commit is contained in:
Gabe Kangas
2022-03-05 22:34:06 -08:00
committed by GitHub
parent 8692dcca16
commit d5a6267b1f
5 changed files with 64 additions and 23 deletions

View File

@@ -161,6 +161,9 @@ func Start() error {
// Disable chat
http.HandleFunc("/api/admin/config/chat/disable", middleware.RequireAdminAuth(admin.SetChatDisabled))
// Disable chat user join messages
http.HandleFunc("/api/admin/config/chat/joinmessagesenabled", middleware.RequireAdminAuth(admin.SetChatJoinMessagesEnabled))
// Set chat usernames that are not allowed
http.HandleFunc("/api/admin/config/chat/forbiddenusernames", middleware.RequireAdminAuth(admin.SetForbiddenUsernameList))