Implement counting of various IRC events

This commit is contained in:
2018-02-24 12:42:27 +00:00
parent 378c4d9bba
commit 8dec0b6828
8 changed files with 71 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ filemap = {
"pool": ["pool.json", "pool"],
"help": ["help.json", "command help"],
"wholist": ["wholist.json", "WHO lists"],
"counters": ["counters.json", "counters file"],
}
numbers = "0123456789"
@@ -28,7 +29,7 @@ CommandMap = {}
def register(command, function):
if not command in CommandMap:
CommandMap[command] = function
log("Registering command %s" % command)
debug("Registered command: %s" % command)
else:
error("Duplicate command: %s" % (command))