This commit is contained in:
Skillet 2023-08-01 23:02:19 -04:00
parent 040e233358
commit 4675d0efbd
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,8 @@ class Group(commands.Cog, name="group"):
await interaction.response.send_message("Whitelist group successfully added/updated") await interaction.response.send_message("Whitelist group successfully added/updated")
if role.id in self.client.whitelistGrps.keys(): if role.id in self.client.whitelistGrps.keys():
self.client.whitelistGrps[role.id].squadPerms = perms if perms is not None:
self.client.whitelistGrps[role.id].squadPerms = perms
self.client.whitelistGrps[role.id].updateGroup() self.client.whitelistGrps[role.id].updateGroup()
else: else:
log.info(f"Adding {role.name} ({role.id}) as a Whitelist role") log.info(f"Adding {role.name} ({role.id}) as a Whitelist role")

View File

@ -32,6 +32,7 @@ class serveRA(http.server.SimpleHTTPRequestHandler):
try: try:
file = open(grpfile, 'rb') file = open(grpfile, 'rb')
firstline = file.readline().decode('utf-8') firstline = file.readline().decode('utf-8')
file.seek(0)
if firstline.startswith('remotelist='): if firstline.startswith('remotelist='):
remote = firstline.split('=')[1].strip() remote = firstline.split('=')[1].strip()
response = requests.get(remote, headers={'Accept': 'text/html,*/*'}) response = requests.get(remote, headers={'Accept': 'text/html,*/*'})