Commit graph

456 commits

Author SHA1 Message Date
Georg Lukas
d619e0c5ff Roster: display presence.show when contact goes offline, if available. 2018-12-16 19:02:06 +01:00
Georg Lukas
b0a19bb019 self-ping: do not /cycle on timeout, log only 2018-12-16 19:02:06 +01:00
3ad55c746e impromptu: add or update documentation for commands
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
936e16f98f impromptu: rework string format
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
f86626a7f4 impromptu: don't set roomname and roomdesc; remove jids argument
I was originally panning to generate a user-friendly room name with
them, but this can/should be done at runtime (in case it changes).

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
82da51cb3d impromptu: fix typo in log line
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
9e573c81cd Remove TODO comment about user-friendly muc name
See #3447 instead. This can be generated at runtime.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
0f3f093cdc impromptu: Incorporate feedback from daniel for muc options
Adding missing MAM bits, removing the allowpm restriction, as clients
should already be using realjids when available.

I am leaving allowinvites for now as I think that should be in there,
but we can align ourselves later on if necessary, I'm not totally
against the idea.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
ef47c3548a impromptu: shorten config field list formatting
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
0f6205d29b Add /invite for ConversationTab to generate new room with all invitees
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
cf50ef2cf3 Use identites from server for muc service
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
dc2808cdcc Add error message if muc service not found
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
b6fb719cc9 Add configuration for default_muc server to join if no muc available on domain
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
0f344b899c Initial impromptu command
Add a command that invites people to a newly created room, with a random
localpart. The muc component is currently static. The interface
for the command might also change later on.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 16:57:48 +00:00
0276e74898
MucInfoWin: correctly pass JID to additional info plugin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 14:20:55 +00:00
f00866c56a
ConversationInfoWin: Use similar pattern as MucInfoWin to loop through plugins
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-16 14:19:38 +00:00
7d0d4ddb51 Use additional info's value directly in MucInfoWin and ConversationInfoWin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-15 21:00:46 +00:00
0c9c4edfa2 Allow additional information elements in MucInfoWin same as ConversationInfoWin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-12-15 21:00:46 +00:00
mathieui
e992107ecf
I give up
on getting Link Mauve to ever run tests
2018-12-15 15:19:27 +01:00
Emmanuel Gil Peyrot
ae12b95f92 Add missing height and width attributes to FormWin
Fixes a regression introduced in
cce1a4090a when displaying data forms.
2018-10-27 19:24:58 +02:00
Emmanuel Gil Peyrot
cce1a4090a Add __slots__ in most of the poezio.windows classes, to be more explicit about their data. 2018-10-24 16:28:55 +02:00
Emmanuel Gil Peyrot
d967c246c8 logger: Look up the correct start position, not two bytes before. 2018-10-18 22:01:26 +02:00
Emmanuel Gil Peyrot
a630f4a13d logger: Prefix private functions with an underscore. 2018-10-18 22:01:21 +02:00
Emmanuel Gil Peyrot
d626aa1533 Fix truncate_nick()’s types to include None.
It is relied on in quite a few places which don’t check for None before
calling it on messages which have no nick.
2018-10-18 22:00:40 +02:00
mathieui
9b95b65add
MUC fix for bad servers (#3430)
tentative fix
2018-10-18 01:33:17 +02:00
mathieui
1ed666c5b5
Fix core import in main 2018-10-15 19:40:54 +02:00
mathieui
c785c146d1
Remove implicit import of Core modules leading to circular imports
Which did not break if we imported modules in a certain order…
2018-10-13 13:44:54 +02:00
Emmanuel Gil Peyrot
1965abf99a XEP-0231: Extract cids from XHTML-IM. 2018-09-30 11:46:27 +02:00
Emmanuel Gil Peyrot
c13ae1b932 Print the error given by the server when /bookmark fails. 2018-09-29 23:09:32 +02:00
Emmanuel Gil Peyrot
2428084c8d Cache highlighting regex in a lru.
This makes it way faster than having to create it all the time.
2018-09-25 21:55:25 +02:00
Jonas Schäfer
6deffb430e Improve highlighing regex to deal with fancy nicknames
Nicknames which do not end and start on a word boundary or contain
regex metacharacters broke with the previous approach.

Fixes #3433.
2018-09-25 18:59:37 +02:00
4b8c63d25b Split highlight logic and UI changes
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-09-25 12:47:09 +02:00
mathieui
0b8fef46f7
Fix compatibility with python 3.5.2
We don’t lose anything, mypy will add these Optionals by itself since it
can see the = None.
2018-09-11 20:16:48 +02:00
bb9bc80d9b
Allow Tabs object to be sliced
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-09-09 13:39:46 +01:00
mathieui
1524245dd0
Do not add our directory to the path
it’s bad practice and can create issues
2018-08-22 23:32:56 +02:00
mathieui
8edef603fb
Fix UserList.resize 2018-08-19 13:03:40 +02:00
Emmanuel Gil Peyrot
8d2f25095f muctab: Create the last_talked compare lambda only once. 2018-08-18 20:48:57 +01:00
Emmanuel Gil Peyrot
accf6ab777 Fix wrong tests for None. 2018-08-18 08:04:56 +01:00
Emmanuel Gil Peyrot
73749091ae Remove some circular type imports. 2018-08-18 08:04:41 +01:00
Emmanuel Gil Peyrot
2abbf8274c windows.bookmark_forms: Type almost everything in this module. 2018-08-17 19:43:35 +01:00
Emmanuel Gil Peyrot
ede00f7862 windows.text_win: Type almost everything in this module. 2018-08-17 19:28:19 +01:00
Emmanuel Gil Peyrot
86e2bbb0d4 windows.muc: Type everything in this module. 2018-08-17 18:55:08 +01:00
Emmanuel Gil Peyrot
47bd3ab811 windows.misc: Type everything in this module. 2018-08-17 18:48:39 +01:00
Emmanuel Gil Peyrot
176b4ee9d3 windows.list: Type everything in this module. 2018-08-17 18:45:53 +01:00
Emmanuel Gil Peyrot
a208f895b4 windows.roster_win: Type everything in this module. 2018-08-17 18:36:53 +01:00
Emmanuel Gil Peyrot
d992344812 windows.inputs: Type almost everything in this module. 2018-08-17 18:36:53 +01:00
Emmanuel Gil Peyrot
c2dbaba41f windows.base_wins: Type almost everything in this module. 2018-08-17 18:36:53 +01:00
Emmanuel Gil Peyrot
db230d0b3e windows.input_placeholders: Type everything in this module. 2018-08-17 18:36:49 +01:00
Emmanuel Gil Peyrot
d340066936 windows.info_bar: Type everything in this module. 2018-08-17 18:36:43 +01:00
Emmanuel Gil Peyrot
4fc2338faa windows.confirm: Type everything in this module. 2018-08-17 18:36:37 +01:00