Reformat project
This commit is contained in:
@@ -26,7 +26,7 @@ class StatsCommand:
|
||||
stats.append("User records: %s" % numWhoEntries)
|
||||
stats.append("Events/min: %s" % main.lastMinuteSample)
|
||||
counterEvents = count.getEvents()
|
||||
if counterEvents == None:
|
||||
if counterEvents is None:
|
||||
stats.append("No counters records")
|
||||
else:
|
||||
stats.append("Counters:")
|
||||
@@ -43,7 +43,7 @@ class StatsCommand:
|
||||
numNodes = 0
|
||||
|
||||
for i in main.IRCPool.keys():
|
||||
if "".join([x for x in i if not x in digits]) == spl[1]:
|
||||
if "".join([x for x in i if x not in digits]) == spl[1]:
|
||||
numChannels += len(main.IRCPool[i].channels)
|
||||
found = True
|
||||
numNodes += 1
|
||||
@@ -54,7 +54,7 @@ class StatsCommand:
|
||||
stats.append("User records: %s" % numWhoEntries)
|
||||
stats.append("Endpoints: %s" % numNodes)
|
||||
counterEvents = count.getEvents(spl[1])
|
||||
if counterEvents == None:
|
||||
if counterEvents is None:
|
||||
stats.append("No counters records")
|
||||
else:
|
||||
stats.append("Counters:")
|
||||
|
||||
Reference in New Issue
Block a user