Site Tools


on_send_action
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


on_send_action [2006/08/29 16:08] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $EPIC: on_send_action.txt,v 1.2 2006/08/19 02:36:28 sthalik Exp $
 +======Synopsis:======
 +[[on]] [<modes>]send_action [<serial#>] [-|^]<match> { <action> }
 +
 +======Description:======
 +This hook is triggered whenever the client sends a [[CTCP]] [[ctcp
 +ACTION|ACTION]] to a channel or to another person.
 +
 +======Parameters:======
 +|$0 |target of the [[describe|ACTION]] (nickname or channel)|
 +|$1- |text of message sent|
 +
 +======Examples:======
 +To display separate messages for public and private actions:
 +   on ^send_action "*" {
 +      if ( ischannel($0) ) {
 +         echo * $0: $servernick() $1-
 +      } {
 +         echo *> $0: $servernick() $1-
 +      }
 +   }
 +
  
on_send_action.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1