aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 8ed519b..e7f8f30 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -506,6 +506,15 @@ class Main {
final text = switch (id) {
case "usernameError":
Lang.get(id).replace("$MAX", '${config.maxLoginLength}');
+ case id if (id.startsWith("accessError")):
+ final args = id.split("|");
+ final err = Lang.get(args[0]);
+ if (args[1] == null) {
+ '$err.';
+ } else {
+ final permErr = Lang.get("noPermission").replace("$PERMISSION", args[1]);
+ '$err: $permErr';
+ }
default:
Lang.get(id);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage