mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
adv-relay-config: more revisions (closes #597) [skip ci]
commit c82dcb95a6fa1584104a258c9772845b5549b35e Author: James Lu <james@overdrivenetworks.com> Date: Tue Apr 17 11:49:44 2018 -0700 adv-relay-config: more cleanup and stylistic tweaks commit 515974a54a3a5970b4b78569e395ba69b7ee2ebc Author: James Lu <james@overdrivenetworks.com> Date: Tue Apr 17 11:45:02 2018 -0700 adv-relay-config: revert sorting events I'd rather have this match the code 1 to 1. commit c63a298bd44b341831c2492d667becac67b42b42 Author: Ken Spencer <me@iotaspencer.me> Date: Tue Apr 17 02:15:31 2018 -0400 adv-relay-config: change a bit of formatting (#597) commit aa9577e8300d30713249e054905e6975897e1965 Author: Ken Spencer <me@iotaspencer.me> Date: Tue Apr 17 02:09:31 2018 -0400 adv-relay-config: add more about coloring, sort events
This commit is contained in:
parent
89a7f59262
commit
041b6aecb6
@ -35,6 +35,8 @@ These options take template strings as documented here: https://docs.python.org/
|
||||
|
||||
To disable relaying for any specific event, set the template string to an empty string (`''`).
|
||||
|
||||
To disable colors for events, see [below](#disabling-colorcontrol-codes).
|
||||
|
||||
#### List of supported events
|
||||
|
||||
|Event name|Default value|
|
||||
@ -55,6 +57,31 @@ PNOTICE | <$sender> $text
|
||||
- Note: the `PM` and `PNOTICE` events represent private messages and private notices respectively, when they're relayed to users behind a Clientbot link.
|
||||
- Note 2: as of 1.1.x, all public channel events are sent to channels as PRIVMSG, while `PM` and `PNOTICE` are relayed privately as NOTICE.
|
||||
|
||||
#### Disabling Colors/Control Codes
|
||||
|
||||
If you don't want the messages PyLink sends for clientbot messages to be emboldened or colored,
|
||||
remove all escape sequences (e.g. `\x02`) from the format template and replace the colored variants
|
||||
of applicable substitutions with their non-colored versions.
|
||||
|
||||
This is a example clientbot_styles config block, which you can copy into your `relay` configuration block.
|
||||
(*Do not* make multiple `relay` config blocks, or duplicate any config blocks with the same name!)
|
||||
|
||||
```yaml
|
||||
clientbot_styles:
|
||||
ACTION: "[$netname] * $sender $text"
|
||||
JOIN: "[$netname] - $sender$sender_identhost has joined $channel"
|
||||
KICK: "[$netname] - $sender$sender_identhost has kicked $target_nick from $channel ($text)"
|
||||
MESSAGE: "[$netname] <$sender> $text"
|
||||
NICK: "[$netname] - $sender$sender_identhost is now known as $newnick"
|
||||
NOTICE: "[$netname] - Notice from $sender: $text"
|
||||
PART: "[$netname] - $sender$sender_identhost has left $channel ($text)"
|
||||
PM: "PM from $sender on $netname: $text"
|
||||
PNOTICE: "<$sender> $text"
|
||||
QUIT: "[$netname] - $sender$sender_identhost has quit ($text)"
|
||||
SJOIN: "[$netname] - Netjoin gained users: $nicks"
|
||||
SQUIT: "[$netname] - Netsplit lost users: $nicks"
|
||||
```
|
||||
|
||||
### Misc. options
|
||||
- `relay::clientbot_startup_delay`: Defines the amount of seconds Clientbot should wait after startup, before relaying any non-PRIVMSG events. This is used to prevent excess floods when the bot connects. Defaults to 5 seconds.
|
||||
- `servers::NETNAME::relay_force_slashes`: This network specific option forces Relay to use `/` in nickname separators. You should only use this option on TS6 or P10 variants that are less strict with nickname validation, as **it will cause protocol violations** on most IRCds. UnrealIRCd and InspIRCd users do not need to set this either, as `/` in nicks is automatically enabled.
|
||||
|
Loading…
Reference in New Issue
Block a user