Implement Ctrl-C handling and fix a large number of small bugs

This commit is contained in:
2019-09-28 19:46:10 +01:00
parent 006f8db6f6
commit 15ca45e5df
12 changed files with 88 additions and 61 deletions

View File

@@ -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