[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCHAT_EAT_ALL doesn't work on "Your Message" event



Hello,

We are doing some serious C plugin coding here trying to do some message 
text processing before the message is sent. The hook
    hook1 = xchat_hook_print(ph, "Your Message", XCHAT_PRI_NORM, 
your_message_cb, (void*)"Your Message" );
works fine and the function your_message_cb() is called, but returning 
XCHAT_EAT_ALL does not prevent from message being sent. Is this a bug of 
XChat? Or is this the way it should work? If yes then is there any other 
way to catch the message user is trying to send and stop it from being sent?

--
Gediminas Aleknavicius

--
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/xchat-discuss/