# $EPIC: on_action.txt,v 1.4 2007/03/03 17:58:33 jnelson Exp $ ======Synopsis:====== [[on]] action ======Description:====== This event is thrown whenever someone sends a [[ctcp action]] to you or to a channel you are on. [[Ctcp actions]] are generated by the [[me]] and [[describe]] commands. ======Parameters:====== |$0 |Who sent the action | |$1 |Who the action was sent to (your nickname, or a channel) | |$2- |Message body | ======Default Behavior:====== If you don't supress this event, the client will format the message and output it to the channel's window. ======Examples:====== To distinguish personal actions from those sent to a channel: on ^action * (sender, recvr, body) { if (recvr == servernick()) { echo *> $sender $body; } else if (iscurchan($recvr)) { echo * $sender $body; } else { echo * $sender/$recvr $body; }; }; ======History:====== This already existed in ircII.