No special characters allowed
This commit is contained in:
parent
e3e95e15a6
commit
6bd55798b1
2
main.py
2
main.py
|
@ -44,6 +44,8 @@ while True:
|
||||||
print("THERE ARE NO CHEAT CODES IN THIS GAME!!!")
|
print("THERE ARE NO CHEAT CODES IN THIS GAME!!!")
|
||||||
elif "su" in x:
|
elif "su" in x:
|
||||||
os.system("xdg-open https://xkcd.com/838/")
|
os.system("xdg-open https://xkcd.com/838/")
|
||||||
|
elif not x.isalnum():
|
||||||
|
print("NO SPECIAL CHARACTERS!!!")
|
||||||
else:
|
else:
|
||||||
r = os.system(x)
|
r = os.system(x)
|
||||||
if r == 0:
|
if r == 0:
|
||||||
|
|
Loading…
Reference in a new issue