whitelist fix

This commit is contained in:
2023-03-28 21:23:27 +03:00
parent 9f8ca2a984
commit edf6fe6f92

View File

@@ -65,7 +65,7 @@ def main():
if text.startswith(".rcon "):
write(peer_id, f"rcon: {rcon(text[6:])}")
elif text.startswith(".wl "):
write(peer_id, f"Ok\n{rcon(text[4:])}")
write(peer_id, f"Ok\n{rcon(f'whitelist add {text[4:]}')}")
ts = lp.get('ts')