on_pong
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_pong [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 receives a protocol PONG | ||
+ | message. | ||
+ | However, clients are also allowed to send PONG messages to each other. | ||
+ | Since there is never any reason for a client to send a PONG to another | ||
+ | client, this hook can be useful for blocking PONG floods. | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 | ||
+ | |$1- |argument to PONG (usually the same as $0, but not necessarily) | ||
+ | |||
+ | ======Examples: | ||
+ | To filter PONG messages from other clients: | ||
+ | on ^pong " | ||
+ | if ( rmatch($0 %.%) ) { | ||
+ | xecho -b Received protocol PONG from $0: $1- | ||
+ | } | ||
+ | } | ||
+ | |||
on_pong.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1