Implement counting keyword events and a unified buffers system for when the master channel is unavailable

This commit is contained in:
2018-03-04 17:25:57 +00:00
parent eae4315562
commit da6c45f093
16 changed files with 60 additions and 19 deletions

View File

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