Site Tools


on_public_msg

Differences

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

Link to this comparison view

on_public_msg [2006/08/29 16:08] (current)
Line 1: Line 1:
 +======Synopsis:​======
 +[[on]] [<​mode>​]public_msg [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +
 +======Description:​======
 +This hook is triggered whenever the client receives a public message in
 +a channel from someone not actually in the channel.
 +
 +======Parameters:​======
 +|$0     ​|nickname sending message ​  |
 +|$1     ​|channel sent to            |
 +|$2-    |text of message ​           |
 +
 +======Examples:​======
 +To customize how these messages are displayed:
 +   on ^public_msg "​*"​ {
 +      if ( [$1] == C ) {
 +         xecho -b \($0\) $2-
 +      } {
 +         xecho -b \($0:$1\) $2-
 +      }
 +   }
 +
  
on_public_msg.txt ยท Last modified: 2006/08/29 16:08 (external edit)