mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-23 04:58:08 +01:00
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commit afbdd1d8442973f5d570c30920d9d865b5acd479. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commit de22ad375d3ee4d5930c550da2fd23a29a86e616. * Attempt to normalize example.yml (and another file I guess) * Try again
20 lines
506 B
Python
20 lines
506 B
Python
def Namecheck(name,against,sender):
|
|
__doc__ = "False = No match, True = Match"
|
|
for i in against:
|
|
if i.lower() in name.lower() and sender.lower() not in name.lower():
|
|
return True
|
|
else:
|
|
pass
|
|
def Namecheck_dict(name,against):
|
|
__doc__ = "False = No match, True = Match"
|
|
fuse = False
|
|
for a,i in against.items():
|
|
if i.lower() in name.lower():
|
|
fuse = True
|
|
break
|
|
else:
|
|
pass
|
|
return fuse,a
|
|
|
|
|