context: function cmgr_hook (commandName, func, id, before){    if (!ASSERT(commandName in this.commands,                "Unknown command '" + commandName + "'"))    {        return;    }        var command = this.commands[commandName];        if (before)    {        if (!("beforeHooks" in command))            command.beforeHooks = new Object();        command.beforeHooks[id] = func;    }    else    {        if (!("afterHooks" in command))            command.afterHooks = new Object();        command.afterHooks[id] = func;    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4cd3ec76af2e3a9922c2d114bf4267b40b388ac2/command-manager.js/buggy/extensions/irc/js/lib/command-manager.js