mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
Discord video support and more cleaning up
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user