Implement Ctrl-C handling and fix a large number of small bugs
This commit is contained in:
@@ -13,7 +13,7 @@ def getWhoSingle(name, query):
|
||||
|
||||
def getWho(query):
|
||||
result = {}
|
||||
for i in main.nets():
|
||||
for i in main.network.keys():
|
||||
f = getWhoSingle(i, query)
|
||||
if f:
|
||||
result[i] = f
|
||||
@@ -35,7 +35,7 @@ def getChanList(name, nick):
|
||||
|
||||
def getChans(nick):
|
||||
result = {}
|
||||
for i in main.nets():
|
||||
for i in main.network.keys():
|
||||
f = getChansSingle(i, nick)
|
||||
if f:
|
||||
result[i] = f
|
||||
@@ -50,7 +50,7 @@ def getUsersSingle(name, nick):
|
||||
|
||||
def getUsers(nick):
|
||||
result = {}
|
||||
for i in main.nets():
|
||||
for i in main.network.keys():
|
||||
f = getUsersSingle(i, nick)
|
||||
if f:
|
||||
result[i] = f
|
||||
@@ -61,7 +61,7 @@ def getNumWhoEntries(name):
|
||||
|
||||
def getNumTotalWhoEntries():
|
||||
total = 0
|
||||
for i in main.nets():
|
||||
for i in main.network.keys():
|
||||
total += getNumWhoEntries(i)
|
||||
return total
|
||||
|
||||
|
||||
Reference in New Issue
Block a user