add multiline perms to cc

This commit is contained in:
Swee 2024-10-12 17:18:12 -07:00
parent 9da0939763
commit 229072cddd

View file

@ -543,7 +543,7 @@ while True:
multiline(str(ex), channel) multiline(str(ex), channel)
else: else:
if command[0][:3] == "$.." or command[0][:2] == "$/": if ".." in command[0][:3]:
irc.send_irc(channel, nick + ": Nice try.") irc.send_irc(channel, nick + ": Nice try.")
block+=1 block+=1
run-=1 run-=1
@ -551,6 +551,9 @@ while True:
else: else:
if path.isfile("cc/" + command[0][1:]): if path.isfile("cc/" + command[0][1:]):
try: try:
if sbconfig.cflagexist(channel, "-multiline") and "#require-multiline" in open("cc/" + command[0][1:]).read():
irc.send_irc(channel, "Multiline commands are disabled in this channel.")
else:
com = ['python3'] com = ['python3']
comm = command comm = command
com.append("cc/" + comm[0][1:]) com.append("cc/" + comm[0][1:])