This commit is contained in:
parent
2a8f19f981
commit
fdcd44ef16
1 changed files with 1 additions and 8 deletions
9
cc/give
9
cc/give
|
@ -2,14 +2,7 @@ from sys import argv
|
||||||
import sqlite3
|
import sqlite3
|
||||||
conn = sqlite3.connect("/home/sweebotirc/sbirc.db")
|
conn = sqlite3.connect("/home/sweebotirc/sbirc.db")
|
||||||
database = conn.cursor()
|
database = conn.cursor()
|
||||||
def getperms(cloak: str):
|
if argv[2] == "full":
|
||||||
try:
|
|
||||||
database.execute("SELECT * FROM users WHERE username = '"+ cloak + "';")
|
|
||||||
output = database.fetchall()
|
|
||||||
return output[0][1]
|
|
||||||
except:
|
|
||||||
return ''
|
|
||||||
if getperms(argv[2]) == "full":
|
|
||||||
if len(argv) == 5:
|
if len(argv) == 5:
|
||||||
if argv[3] == argv[2]:
|
if argv[3] == argv[2]:
|
||||||
print(argv[1] + ": You wanna give yourself permissions!?")
|
print(argv[1] + ": You wanna give yourself permissions!?")
|
||||||
|
|
Loading…
Reference in a new issue