Reformat legacy project
This commit is contained in:
@@ -6,7 +6,9 @@ class AllcCommand:
|
||||
def __init__(self, *args):
|
||||
self.allc(*args)
|
||||
|
||||
def allc(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
||||
def allc(
|
||||
self, addr, authed, data, obj, spl, success, failure, info, incUsage, length
|
||||
):
|
||||
if authed:
|
||||
if length > 4:
|
||||
targets = []
|
||||
@@ -20,7 +22,8 @@ class AllcCommand:
|
||||
[
|
||||
targets.append((i, x))
|
||||
for x in main.alias.keys()
|
||||
if main.alias[x]["nick"] == spl[2] and x in main.network[i].aliases.keys()
|
||||
if main.alias[x]["nick"] == spl[2]
|
||||
and x in main.network[i].aliases.keys()
|
||||
]
|
||||
else:
|
||||
incUsage("allc")
|
||||
@@ -33,7 +36,10 @@ class AllcCommand:
|
||||
num = i[1]
|
||||
alias = main.alias[num]["nick"]
|
||||
commands = {spl[3]: [" ".join(spl[4:])]}
|
||||
success("Sending commands to relay %i as user %s" % (num, alias + "/" + net))
|
||||
success(
|
||||
"Sending commands to relay %i as user %s"
|
||||
% (num, alias + "/" + net)
|
||||
)
|
||||
deliverRelayCommands(num, commands, user=alias + "/" + net)
|
||||
return
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user