diff --git a/cc/give b/cc/give index af9d67f..10d6c2a 100644 --- a/cc/give +++ b/cc/give @@ -2,14 +2,7 @@ from sys import argv import sqlite3 conn = sqlite3.connect("/home/sweebotirc/sbirc.db") database = conn.cursor() -def getperms(cloak: str): - try: - database.execute("SELECT * FROM users WHERE username = '"+ cloak + "';") - output = database.fetchall() - return output[0][1] - except: - return '' -if getperms(argv[2]) == "full": +if argv[2] == "full": if len(argv) == 5: if argv[3] == argv[2]: print(argv[1] + ": You wanna give yourself permissions!?")