Removed unused captions code.

This commit is contained in:
Storm Dragon
2026-07-09 11:15:35 -04:00
parent 9a9742e066
commit 704b1a9558
12 changed files with 28 additions and 99 deletions
+1 -5
View File
@@ -1606,11 +1606,7 @@ func handleClientMessage(c *webClient, m clientMessage) error {
return c.error(hall.UserError("join a hall first"))
}
required := "message"
if m.Type == "chat" && m.Kind == "caption" {
required = "caption"
}
if !member(required, c.permissions) {
if !member("message", c.permissions) {
return c.error(hall.UserError("not authorised"))
}