Skip to content

Commit

Permalink
Developers -> Moderators pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
piplupness authored Jan 17, 2025
1 parent 9116452 commit ba5be67
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/middleware/checkBan.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ async function checkBan(request, response, next) {
let banMessage = '';
switch (user.account_status) {
case 2:
banMessage = `${request.user.username} has been banned until: ${ moment(user.ban_lift_date) }. \n\nReason: ${user.ban_reason}. \n\nIf you have any questions contact the developers in the Discord server.`;
banMessage = `${request.user.username} has been banned until: ${ moment(user.ban_lift_date) }. \n\nReason: ${user.ban_reason}. \n\nIf you have any questions contact the moderators in the Discord server or forum.`;
break;
case 3:
banMessage = `${request.user.username} has been banned forever. \n\nReason: ${user.ban_reason}. \n\nIf you have any questions contact the developers in the Discord server.`;
banMessage = `${request.user.username} has been banned forever. \n\nReason: ${user.ban_reason}. \n\nIf you have any questions contact the moderators in the Discord server or forum.`;
break;
default:
banMessage = `${request.user.username} has been banned. \n\nIf you have any questions contact the developers in the Discord server.`;
banMessage = `${request.user.username} has been banned. \n\nIf you have any questions contact the moderators in the Discord server or forum.`;
}
return response.render('web/login.ejs', {toast: banMessage, cdnURL: config.CDN_domain,});
} else {
Expand Down
8 changes: 4 additions & 4 deletions src/webfiles/ctr/partials/ban_notification.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
<%} else {%>
<script>
<% if(networkBan) {%>
cave.error_callFreeErrorViewer(5980010, '<%=PNID%> has been banned from the network.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the developers in the Discord server.');
cave.error_callFreeErrorViewer(5980010, '<%=PNID%> has been banned from the network.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server or forum.');
cave.closeApplication();
<%} else if(user.account_status === 1) {%>
cave.error_callFreeErrorViewer(5980009, '<%=PNID%> has been limited from posting until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the developers in the Discord server.');
cave.error_callFreeErrorViewer(5980009, '<%=PNID%> has been limited from posting until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server or forum.');
location.href = '/communities';
<%} else if(user.account_status === 2) {%>
cave.error_callFreeErrorViewer(5980010, '<%=PNID%> has been banned until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the developers in the Discord server.');
cave.error_callFreeErrorViewer(5980010, '<%=PNID%> has been banned until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server or forum.');
cave.closeApplication();
<%} else if(user.account_status === 3) {%>
cave.error_callFreeErrorViewer(5980011, '<%=PNID%> has been banned forever.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the developers in the Discord server.');
cave.error_callFreeErrorViewer(5980011, '<%=PNID%> has been banned forever.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server or forum.');
cave.closeApplication();
<%}%>
</script>
Expand Down
8 changes: 4 additions & 4 deletions src/webfiles/portal/partials/ban_notification.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
<%} else {%>
<script>
<% if(networkBan) {%>
wiiuErrorViewer.openByCodeAndMessage(5980010, '<%=PNID%> has been banned from the network.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server.');
wiiuErrorViewer.openByCodeAndMessage(5980010, '<%=PNID%> has been banned from the network.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server or forum.');
wiiuBrowser.closeApplication();
<%} else if(user.account_status === 1) {%>
wiiuErrorViewer.openByCodeAndMessage(5980009, '<%=PNID%> has been limited from posting until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server.');
wiiuErrorViewer.openByCodeAndMessage(5980009, '<%=PNID%> has been limited from posting until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server or forum.');
location.href = '/communities';
<%} else if(user.account_status === 2) {%>
wiiuErrorViewer.openByCodeAndMessage(5980010, '<%=PNID%> has been banned until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server.');
wiiuErrorViewer.openByCodeAndMessage(5980010, '<%=PNID%> has been banned until: \n\n<%= moment(user.ban_lift_date) %>.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server or forum.');
wiiuBrowser.closeApplication();
<%} else if(user.account_status === 3) {%>
wiiuErrorViewer.openByCodeAndMessage(5980011, '<%=PNID%> has been banned forever.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server.');
wiiuErrorViewer.openByCodeAndMessage(5980011, '<%=PNID%> has been banned forever.\n\nReason: <%=user.ban_reason%>\n\nIf you have any questions contact the moderators in the Discord server or forum.');
wiiuBrowser.closeApplication();
<%}%>
</script>
Expand Down

0 comments on commit ba5be67

Please sign in to comment.