Since GENERAL_PRIVMSG and GENERAL_NOTICE work in the same way, I'll only refer to 
GENERAL_PRIVMSG for 
the rest of the email.

The current behavior of GENERAL_PRIVMSG is as follows:
   $0    nickname of message sender
   $1    target of privmsg
   $2-   text of message

If the privmsg is a public channel message, $1 shows the channel name. This behavior 
is logical.

If the privmsg is a private message to you, $1 shows the sender's nick. This behavior 
isn't logical. 
Currently, the only ways to determine if a GENERAL_PRIVMSG is a public or a private is 
to either check 
if $1 is a channel or check if $0 and $1 are the same.

I'm suggesting/requesting for EPIC5 that $1 be changed to be your own nick in the 
second case, thereby 
allowing a hook matching '% $servernick() *', which would be more efficient than 
having a single 
GENERAL_PRIVMSG hook that then has to do some extra IF processing. Considering how 
frequently a 
GENERAL_PRIVMSG hook would be triggered, I think increasing the efficiency is 
important.

-- 
[EMAIL PROTECTED]
irc.foxlink.net operator
 
_______________________________________________
List mailing list
[EMAIL PROTECTED]
http://epicsol.org/mailman/listinfo/list

Reply via email to