James Lu
caa94f983f
relay: mangle <( to [ and >) to ] for better displays
2019-06-24 15:08:13 -07:00
James Lu
1852ff5774
relay: passthrough nicks in normalize_nick() on server supporting freeform-nicks
2019-06-23 17:48:15 -07:00
James Lu
30f7a77d18
Revert most of 1c0ea24acd
...
1c0ea24acd
"relay_clientbot: normalize sender names to the senders' home networks"
In the future we hope to remove nick restrictions in Clientbot entirely, and just use freeform nicks for virtual users.
2019-06-23 17:48:08 -07:00
James Lu
957697d275
networks: don't allow disconnecting servers marked virtual-server
2019-06-23 17:43:12 -07:00
James Lu
ed4404bf4b
relay: fake revert mode changes we couldn't bounce ( #23 )
...
This allows services to revert mode changes CLAIM was not happy with, instead of causing another mode war during this process.
2019-06-21 15:38:49 -07:00
James Lu
dcab011673
relay: pretend mode reverts on SJOIN always succeed ( #23 )
...
This prevents remote services from bypassing CLAIM, since the end result of a mode war is that they remained opped.
2019-06-21 15:28:52 -07:00
James Lu
94cd1d8f22
relay: implement kick/mode/topic war prevention ( #23 )
...
This adds cachetools as a dependency for Relay.
2019-06-21 14:57:43 -07:00
James Lu
042d11d7ba
relay: remove extraneous variable
2019-06-21 14:03:21 -07:00
James Lu
74566c3aab
antispam, changehost: remove references to ircmatch ( #636 )
2019-06-21 12:51:12 -07:00
James Lu
0836845ff9
Merge relay showchan/showuser info into commands.py
...
This makes error handling easier and is needed to support duplicate nicks anyways.
2019-06-16 11:22:36 -07:00
James Lu
dfc4e4954a
commands: remove explicit cutoff of 20 users/line in showchan
...
irc.reply() in PyLink 2.0+ handles line wrapping automatically.
2019-06-16 11:20:26 -07:00
James Lu
fe95a4a571
commands: rework showuser to better handle duplicate nicks
...
This is freely allowed on Discord, for example.
2019-06-16 11:19:19 -07:00
James Lu
fc4a16eda1
bots, opercmds: handle cases where target nick is disambiguous
2019-06-16 11:04:07 -07:00
James Lu
3b07f8ab2b
fantasy: accept "@servicebot" as fantasy trigger prefix
...
For platforms like Discord where this form of address is the norm.
Closes https://github.com/PyLink/pylink-discord/issues/17
2019-06-15 23:56:55 -07:00
James Lu
3d039b78e2
relay: use [] as altchars for Base64 fallback
...
This ensures that mangled nicks can be reversed more easily (by removing leading _'s and replacing - with =)
2019-06-15 23:48:46 -07:00
James Lu
1c0ea24acd
relay_clientbot: normalize sender names to the senders' home networks
...
This should work for most messages, except NICK changes and MODE targets.
2019-05-18 19:44:45 -07:00
James Lu
ec379a6e81
servprotect: migrate to cachetools (but leave expiringdict as fallback)
...
Closes #445 .
2019-05-13 16:59:57 +08:00
James Lu
ad9a51fc33
commands.showuser: properly handle numeric-type UIDs and channels
2019-04-09 19:10:20 -07:00
James Lu
13be40e08b
changehost: only send a host change if new host != original
2019-04-09 19:01:53 -07:00
James Lu
41cbd455d6
relay: only check _invisible flag on actual users
2019-04-02 21:22:40 -07:00
James Lu
71353a29c2
relay: add support for hiding users marked invisible or offline
...
First part of https://github.com/PyLink/pylink-discord/issues/19
2019-03-28 20:14:58 -07:00
James Lu
63d63c0137
relay: allow trailing .'s in subserver names
2019-03-20 21:14:12 -07:00
James Lu
88f45fb1d5
relay: whitelist ~ in idents
2019-03-20 21:08:55 -07:00
James Lu
c9176a06fc
relay: check for nicks starting with numbers or - after removing Unicode
2019-03-20 21:08:21 -07:00
James Lu
9d459fab92
relay: fixes to support IDs as channel name
...
- Don't enforce local channel validity rules on the remote channel name
- Normalize channels to str before looking them up in the DB
2019-02-16 16:35:47 -08:00
James Lu
96815a0a32
relay: sanitize idents before mirroring them to IRC
2019-02-12 15:55:14 -08:00
James Lu
a9f59307c9
relay: use base64 as fallback if unidecode returns an empty string for nick
...
This is the case for e.g. nicks that are only an emoji.
2019-02-12 14:17:53 -08:00
James Lu
11b65ee809
relay: rework nick normalization with optional unidecode support
...
This will attempt to translate UTF-8 nicks to ASCII ones instead of doing the ugly '||||' replace.
Also, the fallback character for disallowed nick characters is now "-" instead of "|".
TODO: document relay::use_unidecode
Closes #561 .
2019-02-12 00:58:20 -08:00
James Lu
11e7589304
relay_clientbot: fix previous commit
2019-02-10 14:35:34 -08:00
James Lu
76f534ce84
relay_clienbot: fix rpm when UIDs are ints
2019-02-10 14:22:18 -08:00
James Lu
61c8677802
classes, relay_clientbot: more type safety for protocols/discord
2019-02-07 13:50:32 -08:00
James Lu
23cb7c173a
stats: hide login blocks not relevant to this network
2019-02-07 13:50:32 -08:00
James Lu
852c257e88
relay: remove use of re-entrant locks
...
This shouldn't be necessary anymore.
2018-12-27 11:58:39 -08:00
James Lu
bf9eb8d4ea
relay: fix incorrect in-place changes of modedelta modes
...
This caused the database to be filled with extraneous "-modename" entries when removing modes from the previous modedelta.
2018-11-30 10:21:51 -08:00
James Lu
d01a9fe9b4
antispam: more lookalike chars for o, \, #
2018-11-10 23:21:54 -08:00
James Lu
aa5412712a
antispam: more lookalike unicode chars
...
Courtesy of @nathan0
2018-11-10 10:20:41 -08:00
James Lu
32e9cc689e
antispam: filter away Unicode lookalike characters when processing
...
Based off 56b48e4e51
2018-11-07 16:16:46 -08:00
James Lu
dac8410b63
relay: shortcut if the remote network is not ready
2018-10-10 22:49:10 -07:00
James Lu
0b3793380b
relay: remove TCONDITION_TIMEOUT
2018-10-08 14:59:01 -07:00
James Lu
1ee93d2cc4
relay: remove world.started check, this shouldn't be needed anymore
2018-10-08 14:44:37 -07:00
James Lu
767ff15200
relay: add an explicit forcetag command
...
We used to be able to just /kill to forcetag, but with PyLink 2.0 kills actually get relayed.
2018-10-08 12:42:38 -07:00
James Lu
57faa1443a
relay: rename nick_collide() to forcetag_nick()
2018-10-08 12:41:52 -07:00
James Lu
20b3a61cd6
relay: simplify is_relay_client()
2018-10-08 12:12:09 -07:00
James Lu
7fb4c8da04
automode: manage persistent channels on the right network
2018-10-06 23:46:49 -07:00
James Lu
a3e18081a6
relay: don't relay as text modes being set on netburst ( #627 )
2018-09-21 21:53:34 -07:00
James Lu
5838d88404
networks: reload shared modules used by protocol modules too
2018-08-23 02:57:03 -04:00
James Lu
12f6bb5e18
relay: don't relay kill->kick when remotechan is None
2018-07-18 18:45:49 -07:00
James Lu
a1783ed2be
bots: "bots.joinclient" should be "bots.join" (matching the command name)
2018-07-11 22:16:05 -07:00
James Lu
f9611ef6bc
relay: grant CHANDESC permissions to opers if allow_free_oper_links is true
2018-07-11 21:56:29 -07:00
James Lu
71a24b8b9f
relay: remove noctcp, regdeaf, stripcolor from whitelisted umodes
...
Filter-type umodes don't work properly with relay yet.
2018-07-10 18:09:24 -07:00