rem: return (hooks.push({pattern: pattern, f: f, name: name, neg: neg, enabled: enabled}) - 1); 
add: var hook = { pattern: pattern, f: f, name: name, neg: neg, enabled: enabled };  hooks.push(hook);  return hook; 
context: function ep_addhook(pattern, f, name, neg, enabled, hooks){    if (typeof hooks == "undefined")        hooks = this.hooks;        if (typeof f != "function")        return false;    if (typeof enabled == "undefined")        enabled = true;    else        enabled = Boolean(enabled);    neg = Boolean(neg);    return (hooks.push({pattern: pattern, f: f, name: name,                       neg: neg, enabled: enabled}) - 1);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/7488e28c59de8516f57a041d197a80a62240072b/events.js/buggy/extensions/irc/js/lib/events.js