summaryrefslogtreecommitdiff
path: root/poezio/core/commands.py
AgeCommit message (Collapse)Author
2022-08-21mypy: Type some more thingsEmmanuel Gil Peyrot
This lets us pass under mypy 0.971, and is yet another step towards mypyc compatibility perhaps.
2022-03-23internal: make command_say asyncmathieui
2022-02-25clean: remove unused importsmathieui
2022-02-25bookmark: Add logging on InvalidJidMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-25bookmark nick: Treat empty string as no nickMaxime “pep” Buquet
And prevent the JID() call from failing with InvalidJid because of the empty resource. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-25Ensure /bookmark{,_local} and /join use the proper tab objectMaxime “pep” Buquet
Now that _add_bookmark is async. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-24impromptu: add room jid in invite info messageMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-24destroy_room: Allow empty altroom argumentMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-12-11Replace asyncio.ensure_future() with asyncio.create_task()Emmanuel Gil Peyrot
The latter function got introduced in Python 3.7, which is conveniently our MSPV, so let’s use that.
2021-11-15Add xmpp: URI support to the /join commandEmmanuel Gil Peyrot
2021-07-02fix: improve typingmathieui
preliminary to more typing added to slixmpp, fix things in advance
2021-04-16fix: regression on /setmathieui
2021-04-16fix: /set: do not priorize section printing if we detect an optionmathieui
2021-04-16fix: when detecting /set option = value, do the right thingmathieui
Previously: this creates a section with the option name, with an option named "=" and the value specified. Then you are stuck because "/set option value" will not work due to the command detecting the section name and only printing the value of [option] value=. Fixes #3517, probably
2021-04-15fix: /join with passwordsmathieui
2021-04-11feature: add a /debug command to change logging level dynamicallymathieui
And changing the path too
2021-04-11refactor: move argument parsing away from config.pymathieui
global state--
2021-04-02refactor: rewrite config.get() to getbool, getstr, getint…mathieui
2021-03-13fix: do not crash on /invitationsmathieui
(but only if an invalid JID is in there, I guess)
2021-03-13fix: fix global /last_activitymathieui
2021-02-09Remove activity/mood/gaming/tune from poezio coremathieui
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-07/join: Fix autobookmarkingmathieui
(broken when moving bookmarks to async)
2021-02-07core commands: make /last_activity asyncEmmanuel Gil Peyrot
2021-02-07core commands: remove all remaining usage of safeJID()Emmanuel Gil Peyrot
2021-02-03invite: remove callback and force impromptu rooms to use mediatedmathieui
2021-02-03core commands: remove uses of callback=mathieui
2021-02-03bookmarks: get rid of callbacksmathieui
2021-01-28Fix /destroy error casesmathieui
2021-01-28core: move initial commands in a separate filesmathieui
(improve core.py SNR)
2020-12-28Add (back?) reason and altroom arguments for /destroy_room.Emmanuel Gil Peyrot
Also make use of slixmpp’s new destroy_room() function.
2020-12-12from __future__ import annotationsEmmanuel Gil Peyrot
Now that our baseline is Python 3.7, we can rely on type annotations to be lazily evaluated.
2020-06-24core/commands: code style fixesMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-06-24core/commands: use named parameters in _add_bookmarks to make things explicitMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-06-24bookmarks: ensure nick is added when to bookmark when specifiedMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-31Revert "Bookmarks: type bookmark method (local/remote)"Maxime “pep” Buquet
This reverts commit 91831e7903bac287be9e5403e56b07691151f1ab. Breaks python 3.7 ..-. .- .. - -.-. .... .. . .-.
2020-05-31Bookmarks: type bookmark method (local/remote)Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-28Only add autojoin to a bookmark on creation if the room is not bookmarkedmathieui
With synchronise_open_rooms, otherwise you just have autojoin added everytime, which is probably not what you want.
2020-05-24Rename bookmark_on_join to synchronise_open_roomsEmmanuel Gil Peyrot
Also add some more documentation about it.
2020-05-12Add /wup commandJonas Schäfer
The `/wup` command selects a tab by the prefix of its name only. The `/win` will do a substring match based on the first tab going from the current tab which matches the substring. This can be confusing, especially since `/win` matches on different types of tab "names" not only on the name which is shown in the info bar by default. The `/wup` command exclusively matches based on the prefix of the tab.name string. This has the advantage that it is consistent, deterministic and independent of the currently selected tab.
2020-05-10Move /deny and /remove to global scope as wellmathieui
2020-05-10Fix completion and function names for /accept and /addmathieui
2020-05-09Add back the deny_anonymous decorator to /add and /acceptmathieui
2020-03-29cElementTree has been deprecated since Python 3.3 and removed in Python 3.9.Karthikeyan Singaravelan
2020-03-29Fix 'disconnected' event handler order for /quitGeorg Lukas
2020-02-04load, unload: prevent Traceback when not enough parameters are specifiedMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-22WIP: Allow blocking commands in ConversationTabMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-21core/commands: Move import order to please linterMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-21Remove safeJID call in destroy_roomMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-04core/commands: remove more safeJID callsMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-08-26Use the right settings when reconnecting from poeziomathieui