on_join
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_join [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | [[on]] [< | ||
+ | |||
+ | ======Description: | ||
+ | This hook is triggered whenever the client joins a channel, or whenever | ||
+ | it observes another client joining a common channel. | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 |nickname of person joining channel | | ||
+ | |$1 |channel joined | | ||
+ | |$2 |address of person joining channel (same as $[[userhost function|userhost]]()) | | ||
+ | |$3 |person joining' | ||
+ | |||
+ | ======Examples: | ||
+ | To distinguish between the client and other users joining the channel: | ||
+ | on ^join " | ||
+ | if ( [$0] == N ) { | ||
+ | xecho -b You have joined channel $1 | ||
+ | } { | ||
+ | xecho -b $0 \($2\) has joined channel $1 | ||
+ | } | ||
+ | } | ||
+ | |||
on_join.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1