Make monitor notifications ignore numbers to support multiple networks in only one reference

This commit is contained in:
2018-08-26 19:08:27 +01:00
parent de5baf562b
commit b31b5d40e8
2 changed files with 27 additions and 29 deletions

View File

@@ -3,7 +3,6 @@ from string import digits
#from utils.logging.log import *
def setWho(network, newObjects):
network = "".join([x for x in network if not x in digits])
if not network in main.wholist.keys():
main.wholist[network] = {}
for i in newObjects.keys():
@@ -12,8 +11,6 @@ def setWho(network, newObjects):
return
def setWhoSingle(network, nick, ident, host):
network = "".join([x for x in network if not x in digits])
if network in main.wholist.keys():
if nick in main.wholist[network].keys():
main.wholist[network][nick][1] = ident