Implement counting of various IRC events
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user