mirror of
https://github.com/jlu5/PyLink.git
synced 2025-05-07 15:17:33 +02:00
hooks-reference: add VERSION and WHOIS
This commit is contained in:
parent
f618b96b34
commit
c8a3514776
@ -151,6 +151,13 @@ The following hooks represent regular IRC commands sent between servers.
|
|||||||
- **SAVE**: `{'target': 'UID8', 'ts': 1234567892, 'oldnick': 'Abracadabra'}`
|
- **SAVE**: `{'target': 'UID8', 'ts': 1234567892, 'oldnick': 'Abracadabra'}`
|
||||||
- For protocols that use TS6-style nick saving. During nick collisions, instead of killing the losing client, servers that support SAVE will send such a command targeting the losing client, which forces that user's nick to their UID.
|
- For protocols that use TS6-style nick saving. During nick collisions, instead of killing the losing client, servers that support SAVE will send such a command targeting the losing client, which forces that user's nick to their UID.
|
||||||
|
|
||||||
|
- **VERSION**: `{}`
|
||||||
|
- This is used for protocols that send VERSION requests between servers when a client requests it (e.g. `/raw version pylink.local`).
|
||||||
|
- `coreplugin` automatically handles this by responding with a 351 numeric, with the data being the output of `utils.fullVersion(irc)`.
|
||||||
|
|
||||||
|
- **WHOIS**: `{'target': 'UID1'}`
|
||||||
|
- On protocols supporting it (everything except InspIRCd), the WHOIS command is sent between servers for remote WHOIS requests.
|
||||||
|
- This requires servers to respond with a complete WHOIS reply (using all the different numerics), as done in `coreplugin`.
|
||||||
|
|
||||||
## Hooks that don't map to IRC commands
|
## Hooks that don't map to IRC commands
|
||||||
Some hooks do not map directly to IRC commands, but to events that protocol modules should handle.
|
Some hooks do not map directly to IRC commands, but to events that protocol modules should handle.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user