Reformat project
This commit is contained in:
@@ -9,7 +9,7 @@ class ListCommand:
|
||||
if authed:
|
||||
if length == 1:
|
||||
for i in main.network.keys():
|
||||
if not 1 in main.network[i].relays.keys():
|
||||
if 1 not in main.network[i].relays.keys():
|
||||
info("Network has no first instance: %s" % i)
|
||||
continue
|
||||
if not i + "1" in main.IRCPool.keys():
|
||||
@@ -22,10 +22,10 @@ class ListCommand:
|
||||
if not spl[1] in main.network.keys():
|
||||
failure("No such network: %s" % spl[1])
|
||||
return
|
||||
if not 1 in main.network[spl[1]].relays.keys():
|
||||
if 1 not in main.network[spl[1]].relays.keys():
|
||||
failure("Network has no first instance")
|
||||
return
|
||||
if not spl[1] + "1" in main.IRCPool.keys():
|
||||
if spl[1] + "1" not in main.IRCPool.keys():
|
||||
failure("No IRC instance: %s - 1" % spl[1])
|
||||
return
|
||||
main.IRCPool[spl[1] + "1"].list()
|
||||
|
||||
Reference in New Issue
Block a user