We could add configuration options for all defined hooks, so that
individual hooks can be enabled or disabled, not just the hook loader.

--
Fox Wilson
PGP key<http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x61C09087F8C8D497>
 *· *Resume <http://fwilson.me/resume.pdf>



On Tue, Nov 12, 2013 at 6:59 PM, pefoley2 <notifications@github.com> wrote:

> In handler.py:
>
> > @@ -390,9 +390,10 @@ def handle_msg(self, msgtype, c, e):
> >              target = nick
> >          send = lambda msg, mtype='privmsg', target=target: self.send(target, self.config['core']['nick'], msg, mtype)
> >
> > -        for hook in self.hooks:
> > -            realargs = self.do_args(hook.args, send, nick, target, e.source, c, hook, msgtype)
> > -            hook.run(send, msg, msgtype, realargs)
> > +        if self.config['feature']['hooks'] == "True":
>
> what do you mean?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tjcsl/cslbot/pull/521/files#r7612584>
> .
>