From fdcd44ef16794062dafd0e9633438e694ee0bb9d Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 28 Dec 2024 18:41:29 -0800 Subject: [PATCH] Update cc/give --- cc/give | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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!?")