Discord video support and more cleaning up

This commit is contained in:
some weird guy
2023-07-26 12:02:16 -07:00
parent 700b722736
commit 40355adef6
42 changed files with 24 additions and 396 deletions
-15
View File
@@ -157,12 +157,6 @@ def filterchars(str=""):
for char in forbid:
if char in str:
str = str.replace(char, " ")
if str.isspace():
try:
girls = json.load(open(settings.BASE_DIR + '/girls.json'))
except:
girls = ['None']
return choice(girls)
return str
# Check IP for proxy.
@@ -173,12 +167,3 @@ def iphub(addr):
return True
else:
return False
# NNID blacklist check
def nnid_blacked(nnid):
blacklist = json.load(open(settings.nnid_forbiddens))
# The NNID server omits dashes and dots from NNIDs, gotta make sure nobody gets through this
nnid = nnid.lower().replace('-', '').replace('.', '')
if nnid in blacklist:
return True
return False