Revert "Reformat project"
This reverts commit 64e3e1160aa76d191740342ab3edc68807f890fb.
This commit is contained in:
@@ -5,19 +5,14 @@ class PendingCommand:
|
||||
def __init__(self, *args):
|
||||
self.pending(*args)
|
||||
|
||||
def pending(
|
||||
self, addr, authed, data, obj, spl, success, failure, info, incUsage, length
|
||||
):
|
||||
def pending(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
||||
if authed:
|
||||
if length == 1:
|
||||
results = []
|
||||
for i in main.network.keys():
|
||||
for x in main.network[i].relays.keys():
|
||||
if not main.network[i].relays[x]["registered"]:
|
||||
results.append(
|
||||
"%s: confirm %s %s [code]"
|
||||
% (main.alias[x]["nick"], i, x)
|
||||
)
|
||||
results.append("%s: confirm %s %s [code]" % (main.alias[x]["nick"], i, x))
|
||||
info("\n".join(results))
|
||||
return
|
||||
elif length == 2:
|
||||
@@ -27,10 +22,7 @@ class PendingCommand:
|
||||
results = []
|
||||
for x in main.network[spl[1]].relays.keys():
|
||||
if not main.network[spl[1]].relays[x]["registered"]:
|
||||
results.append(
|
||||
"%s: confirm %s %s [code]"
|
||||
% (main.alias[x]["nick"], spl[1], x)
|
||||
)
|
||||
results.append("%s: confirm %s %s [code]" % (main.alias[x]["nick"], spl[1], x))
|
||||
info("\n".join(results))
|
||||
return
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user