on_send_to_server
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_send_to_server [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | [[on]] [< | ||
+ | |||
+ | ======Description: | ||
+ | This hook, when set, is triggered whenever the client sends data to the | ||
+ | server that matches the hook. It is useful for catching raw messages | ||
+ | destined for the server and redefining them. One such use is with DCC, | ||
+ | as it offers no convenient way to send a raw request. | ||
+ | silent mode, the default action (sending data to the server) is | ||
+ | suppressed, allowing any arbitrary command to be replaced. | ||
+ | |||
+ | When this hook is defined, it causes the client to monitor all traffic | ||
+ | to the server, making it somewhat resource intensive. | ||
+ | that it be used sparingly. | ||
+ | put the client into an infinite loop with this hook. | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 |reference number of the target server| | ||
+ | |$1 |Unix file descriptor of the server connection| | ||
+ | |$2- |text to be sent to the server| | ||
+ | |||
+ | ======Examples: | ||
+ | To change how a DCC handshake is made (on the sending side): | ||
+ | on ^send_to_server "% % % PRIVMSG % : | ||
+ | quote PRIVMSG $4 : | ||
+ | } | ||
+ | |||
on_send_to_server.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1