Skip to content

Commit 49ac3c7

Browse files
authored
Update account.html
1 parent cbcffa9 commit 49ac3c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/account.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,17 @@
142142
localStorage.setItem('usernameEnc', username); // Store the original Base64-encoded username
143143
localStorage.setItem('loggedIn', 'true');
144144
window.location.href = 'index.html';
145+
146+
// Check if the user is on the first line of the Ban List
147+
// Banned Users: No People Have Been Banned Yet!
148+
if (username === 'PUT THE FIRST BANNED USER HERE') {
149+
// Code here is run if the user gets banned
150+
151+
localStorage.removeItem('loggedIn');
152+
localStorage.removeItem('username');
153+
window.location.href = 'banscreen.html?reason=spam';
154+
}
155+
145156
}
146157

147158
if (authSuccess === 'true') {

0 commit comments

Comments
 (0)