on_raw_irc
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | on_raw_irc [2013/02/18 15:17] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | [[on]] [< | ||
+ | |||
+ | ======Description: | ||
+ | Everything an irc server sends you is routed through this hook first. | ||
+ | This allows you to pre-filter anything from a server before it is | ||
+ | handled by the client, in case the client doesn' | ||
+ | or you want it handled differently. | ||
+ | |||
+ | Because every [[on raw_irc]] is checked for every line from the server, | ||
+ | every one you add makes the client a little bit slower. | ||
+ | and only use [[on raw_irc]] if there isn't another [[on]] you can use. | ||
+ | |||
+ | Danger -- catching something with [[on raw_irc]] suppresses the normal | ||
+ | handling, so be warned -- you can really screw things up by intercepting | ||
+ | important messages, and this would not be considered a bug. | ||
+ | |||
+ | ======Parameters: | ||
+ | |$0 |server sending message (usually the client' | ||
+ | |$1 |protocol command used| | ||
+ | |$2- |arguments, if any, to $1| | ||
+ | |||
on_raw_irc.txt · Last modified: 2013/02/18 15:17 by 127.0.0.1