diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-08-14 01:13:12 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-08-14 01:15:53 +0200 |
commit | b2f3c0d06984b142d64146fb66e71fa27f94c608 (patch) | |
tree | 6351a1ecdb01c33d17126b9ef404594ccdb1fd86 | |
parent | a1f69a53d70277d654f1f9a474876f3496efd034 (diff) | |
download | poezio-b2f3c0d06984b142d64146fb66e71fa27f94c608.tar.gz poezio-b2f3c0d06984b142d64146fb66e71fa27f94c608.tar.bz2 poezio-b2f3c0d06984b142d64146fb66e71fa27f94c608.tar.xz poezio-b2f3c0d06984b142d64146fb66e71fa27f94c608.zip |
plugins/untrackme: docstring to map_services method
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | plugins/untrackme.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/untrackme.py b/plugins/untrackme.py index 841e2d90..5256edad 100644 --- a/plugins/untrackme.py +++ b/plugins/untrackme.py @@ -75,6 +75,13 @@ class Plugin(BasePlugin): self.api.add_event_handler('private_msg', self.handle_msg) def map_services(self, match: re.Match) -> str: + """ + If it matches a host that we know about, change the domain for the + alternative service. Some hosts needs to be proxied instead (such + as twitter pictures), so they're url encoded and appended to the + proxy service. + """ + host = match.group('host') dest = SERVICES.get(host) |