No special characters allowed

This commit is contained in:
Anthony Wang 2023-06-13 18:27:09 +00:00
parent e3e95e15a6
commit 6bd55798b1
Signed by: exogit
GPG key ID: 1DDC6BC38786C595

View file

@ -44,6 +44,8 @@ while True:
print("THERE ARE NO CHEAT CODES IN THIS GAME!!!")
elif "su" in x:
os.system("xdg-open https://xkcd.com/838/")
elif not x.isalnum():
print("NO SPECIAL CHARACTERS!!!")
else:
r = os.system(x)
if r == 0: