diff --git a/client/components/ChatUserList.vue b/client/components/ChatUserList.vue index ffd5fb39..6c831be4 100644 --- a/client/components/ChatUserList.vue +++ b/client/components/ChatUserList.vue @@ -62,16 +62,9 @@ import {computed, defineComponent, nextTick, PropType, ref} from "vue"; import type {UserInMessage} from "../../shared/types/msg"; import type {ClientChan, ClientUser} from "../js/types"; import Username from "./Username.vue"; +import constants from "../js/constants"; -const modes = { - "~": "owner", - "&": "admin", - "!": "admin", - "@": "op", - "%": "half-op", - "+": "voice", - "": "normal", -}; +const modes = constants.modeCharToName; export default defineComponent({ name: "ChatUserList", diff --git a/client/components/Username.vue b/client/components/Username.vue index 3c5d644d..a6eb7691 100644 --- a/client/components/Username.vue +++ b/client/components/Username.vue @@ -1,6 +1,7 @@