Commit graph

4042 commits

Author SHA1 Message Date
mathieui
ee8a3c1121 muc: remove non-deterministic nick colors 2021-02-17 22:04:20 +01:00
mathieui
5a9e143c53 plugins: also update the admin plugin to reflect coroutine changes 2021-02-17 19:10:22 +01:00
mathieui
cfb630edbc muctab: use more coroutines in affiliation/role code 2021-02-17 19:10:22 +01:00
mathieui
0221081b34 irc plugin: Fix the joining code
Make things async
2021-02-16 22:03:10 +01:00
mathieui
67c5bee9da Fix the quote plugin
(broken when refactoring messages)
2021-02-12 18:43:37 +01:00
mathieui
5c6b2adeb2 plugins: add a user_extras plugin with PEP events 2021-02-09 19:16:03 +01:00
mathieui
2cfe56bbbe Remove activity/mood/gaming/tune from poezio core
rationale: probably 0.1% of poezio users have ever used the commands,
and a very small number of users are using the PEP events like that.

It is better to unclutter the poezio source and add it as a plugin,
with less tight coupling.
2021-02-09 19:16:03 +01:00
mathieui
ae0888bd3d Fix #3536: Only use JID in affiliation
add nick if present.
2021-02-08 23:01:41 +01:00
mathieui
6c63cdb509 plugins: fix case of self-message
due to the recent change in conversation_msg
2021-02-08 22:50:07 +01:00
mathieui
35af913662 /join: Fix autobookmarking
(broken when moving bookmarks to async)
2021-02-07 19:49:31 +01:00
mathieui
9894e16045 muctab: fix affiliation list command 2021-02-07 19:45:14 +01:00
Emmanuel Gil Peyrot
ab690bbd50 core commands: make /last_activity async 2021-02-07 19:41:03 +01:00
Emmanuel Gil Peyrot
ac96beb240 core commands: remove all remaining usage of safeJID() 2021-02-07 19:41:03 +01:00
mathieui
3b7e5f93bd link plugin: fix regex for aesgcm and add gemini&gopher 2021-02-05 20:34:16 +01:00
mathieui
46d90bf832 plugins: remove callbacks 2021-02-03 15:22:09 +01:00
mathieui
e2224b938b private/conversationtabs: update /version to be without callback 2021-02-03 15:22:09 +01:00
mathieui
df5a3d0de4 muc: remove callback for tab-specific /version 2021-02-03 15:22:09 +01:00
mathieui
23c1783143 basetabs: remove useless check_features 2021-02-03 15:22:09 +01:00
mathieui
184f354e8d muc: remove get_room_form hack and callbacks 2021-02-03 15:22:09 +01:00
mathieui
341c770b36 invite: remove callback and force impromptu rooms to use mediated 2021-02-03 15:22:09 +01:00
mathieui
048f3d5fd3 core commands: remove uses of callback= 2021-02-03 15:22:09 +01:00
mathieui
19b58d86f5 bookmarks: get rid of callbacks 2021-02-03 15:22:09 +01:00
mathieui
f2aaba982b Move roster commands to async, remove callbacks 2021-02-03 15:22:09 +01:00
mathieui
93c448506a basetabs: wrap coroutine commands in ensure_future 2021-02-03 15:22:09 +01:00
mathieui
695b2ee09a decorators: make decorators work with coroutines
Tried the least ugly solution I could thing of.
2021-02-03 15:22:09 +01:00
mathieui
f5ad5199ae Use async properly on session start 2021-02-03 15:22:09 +01:00
kaliko
262583133e Dereference potential linked launch.sh file
It can be useful to have launch.sh linked somewhere outside the
repository clone. For instance to expose launch.sh in the $PATH.

Exposing launch.sh with a symbolic link outside the git repository
breaks poezio execution through launch.sh. “ cd dirname "$0" ” will get
to the directory holding the link and not within the git repository.
2021-01-30 11:01:20 +01:00
mathieui
9f1e80cd5c Remove force_remote_bookmarks option
It is 2021, servers ought to not be broken that much.
2021-01-29 11:23:31 +01:00
mathieui
b2c846f959 Use typing_extensions for TypedDict 2021-01-29 10:25:00 +01:00
mathieui
233d6d2252 Fix /destroy error cases 2021-01-28 19:03:54 +01:00
mathieui
f808f0cff9 core: move initial commands in a separate files
(improve core.py SNR)
2021-01-28 19:03:54 +01:00
mathieui
08f48b0c8b Move get_error_message to common 2021-01-28 19:03:54 +01:00
mathieui
e1720c8e23 Also receive self-message events in plugins
fixes omemo messages from another of our connected clients
2021-01-24 12:50:08 +01:00
mathieui
98bd4c241e muctab: fix closing a tab not in bookmarks
………
2021-01-24 12:41:09 +01:00
Georg Lukas
5cfb0cbf43 plugins/contact: iterate all data forms, thx. mathieui 2021-01-22 16:06:59 +01:00
Emmanuel Gil Peyrot
12ab0a7e80 Use schema.org properties for documentation, logo and screenshot.
This basically reverts 71eba168e4.
2021-01-02 19:52:59 +01:00
mathieui
c94236b23b Fix nick changes
Due to change again once slixmpp gets a proper API for this
2021-01-02 19:05:07 +01:00
mathieui
c9fe8f0737 Add aesgcm:// urls to the /link plugin 2021-01-02 14:07:16 +01:00
mathieui
aea95e4343 CI: pull slixmpp from gitlab 2021-01-02 14:00:26 +01:00
Emmanuel Gil Peyrot
71eba168e4 Add documentation, logo and screenshot to DOAP file.
I’m done waiting for upstream for that feature, I’ve now imported these
properties to https://linkmauve.fr/ns/xmpp-doap.rdf#
2021-01-01 03:15:42 +01:00
Emmanuel Gil Peyrot
c38538f6b5 Rework set_role() to use slixmpp.
Also remove a safeJID().
2020-12-28 19:10:53 +01:00
Emmanuel Gil Peyrot
4b0e481902 Rework set_affiliation() to use slixmpp.
Also remove two safeJID().
2020-12-28 19:10:53 +01:00
Emmanuel Gil Peyrot
0474d0f4b2 Prevent a traceback when the jid option isn’t a valid JID.
It was crashing deep in XEP-0048 plugin init, this removes a safeJID()
as well as print an error message if the JID is invalid.
2020-12-28 19:10:53 +01:00
Emmanuel Gil Peyrot
85b1222222 Add (back?) reason and altroom arguments for /destroy_room.
Also make use of slixmpp’s new destroy_room() function.
2020-12-28 19:10:53 +01:00
Emmanuel Gil Peyrot
826fa779c4 xmltab: Add some types. 2020-12-28 19:10:53 +01:00
Emmanuel Gil Peyrot
cf58bceb55 xmltab: Remove safeJID(). 2020-12-28 19:10:52 +01:00
Emmanuel Gil Peyrot
c7bce6ba97 Trim all messages by 24 bytes on 64-bit systems
Message was redefining the slots of its parent class, which allocates
them twice and we don’t want that.
2020-12-27 03:34:48 +01:00
Emmanuel Gil Peyrot
78b3933e4d Stop displaying the traceback when /xhtml fails.
Also make the except more restrictive.

Fixes #3514.
2020-12-26 23:54:37 +01:00
Emmanuel Gil Peyrot
1c5836a90f Fix a warning when running tests.
/home/linkmauve/dev/python/poezio/test/test_config.py:13: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
Use @pytest.fixture instead; they are the same.
2020-12-26 23:39:56 +01:00
Emmanuel Gil Peyrot
978d70f38e Update most references to dev.louiz.org to lab.louiz.org.
Redmine is dead.
2020-12-26 23:21:17 +01:00