On Sun, 16 Sep 2001, Max wrote:

> Some hooks, like alot of public_* hooks and channel_signoff
> are filtered agains current channel and sender channels, 
> other hooks are common.

Personally, there's too many of those darned hooks as it is!  ;)

A better way I think, would be to have pairs of 1-character flags, as the
first argument to "/on msg_any"...  One pair of flags to indicate that the
sender is (I) or is not (X) on any of your channels, and another to
indicate that they are (H) or are not (O) on your "current" channel, and a
third to indicate that the target of the message was you (P), a channel
(C), or something else (R=IRCop broadcasts?  U=unknown?).  (I've actually
implemented this using a "hook")

The result is being able to easily select certain classes of message with
some simple string matching, rather than several /on hooks, all calling a
single function, with argument passing and what-not...  Just an idea.

                    ----------------------------------------
I do not believe in an afterlife, although I am bringing a change of underwear.
             WOODY ALLEN

_______________________________________________
List mailing list
[EMAIL PROTECTED]
http://epicsol.org/mailman/listinfo/list

Reply via email to