mathieui
d55cc58725
yapf -ir
2017-11-12 15:03:09 +01:00
mathieui
92496db823
Fix the bookmarks management window
2017-11-12 13:56:04 +01:00
Kim Alvefur
9ba50cb7ed
Include the JID blocked instead of "Contact"
...
It's useful to see what JID you blocked.
Any JID can be blocked, so "Contact" isn't always accurate.
2017-10-23 18:53:44 +01:00
Emmanuel Gil Peyrot
af73b413eb
Check whether curses.A_ITALIC exists, fixes a traceback on <em/> on Python < 3.7.
2017-10-18 15:26:06 +01:00
mathieui
9844f288de
Always refresh the MUC when setting or unsetting a user color
...
Fixes #3213
2017-10-15 14:09:40 +02:00
mathieui
db69afc171
Fix #3316 (normal private messages in MUC do not open a private tab)
2017-10-14 22:07:17 +02:00
mathieui
74ba7a85e6
Fix a traceback when creating a conversation tab
2017-10-14 21:42:44 +02:00
Emmanuel Gil Peyrot
16bdfdfe81
Add support for italic on ^Ci.
...
Fixes #2722 .
2017-10-14 18:43:26 +01:00
Emmanuel Gil Peyrot
256119a574
Add an option to disable CSS parsing.
...
Fixes #3340 .
2017-10-14 18:26:58 +01:00
mathieui
8af1a39d7e
Add a refresh wrapper on the methods for scrolling the userlist
2017-10-14 16:45:31 +02:00
mathieui
fc6f2f2bf7
Use _ for unused arguments in tuple assignment
2017-10-14 16:38:07 +02:00
mathieui
1c43683275
Fix a bad indentation
2017-10-14 16:34:50 +02:00
mathieui
514434f446
Make remaining log.error/debug lazy
2017-10-14 16:33:24 +02:00
mathieui
9d261c902f
Remove use of deprecated base64.encodestring method
2017-10-14 16:30:54 +02:00
mathieui
e7d8d2aaf5
Do not call poezio commands when we can call methods
2017-10-14 16:13:53 +02:00
mathieui
426dd35b94
Split the muctab recolor code
2017-10-14 16:13:42 +02:00
mathieui
7a0fcf855e
Split command_topic in muctab
2017-10-14 16:01:53 +02:00
mathieui
67b850096e
Split command_info in muctab
2017-10-14 15:55:53 +02:00
mathieui
a2440a8b21
Fix error presence handling
2017-10-14 15:45:36 +02:00
mathieui
9eb4b29d24
Refactor nick and affiliation changes
...
(and fix some small bugs that went unnoticed for years)
2017-10-14 15:45:36 +02:00
mathieui
6012bca6d0
Reformat muctab
2017-10-14 13:30:48 +02:00
mathieui
c2e0bcf735
Remove unused is_muc property
2017-10-14 13:09:35 +02:00
mathieui
225f300ef3
Remove some unused imports
2017-10-14 13:00:42 +02:00
mathieui
3b5e396469
Split command declaration from init in muctab
...
Make it slightly more declarative and readable (and longer), and put
it at the end of the file.
2017-10-14 12:54:49 +02:00
mathieui
cee802b6ef
Fix the last pylint error (do not set the roster contact filter to None)
2017-10-13 23:15:03 +02:00
mathieui
858e333279
Clean the presence buffer whenever we leave the room
2017-10-13 19:04:19 +02:00
mathieui
bacbd835eb
Fix more pylint errors
2017-10-13 01:18:22 +02:00
mathieui
69f29969ad
Improve some bare or redundant excepts
2017-10-13 00:47:21 +02:00
mathieui
bbfb834827
Stop /win at the first tab found
2017-10-13 00:39:13 +02:00
6626208983
Change tab search behavior to select first matching tab, and cycle back the list.
2017-10-13 00:07:06 +02:00
mathieui
3317604c65
Fix some excepts (bare, useless, unused)
2017-10-12 01:23:40 +02:00
mathieui
b29b70da0f
Set a default (noop) callback for Input.on_input instead of None
2017-10-12 01:09:45 +02:00
mathieui
39319d4937
Actually fix what the previous commit should have fixed
2017-10-12 00:07:01 +02:00
mathieui
621b966528
Fix a pylint complaint
2017-10-12 00:01:41 +02:00
mathieui
dd8037faa5
Rename the self-command function to self_ and keep language semantics
...
Sorry Link Mauve
2017-10-11 23:47:57 +02:00
mathieui
2b0062a279
Handle PresenceError correctly
2017-10-11 23:47:10 +02:00
mathieui
38a0e614d4
Narrow the scope of a try/except
2017-10-11 23:41:32 +02:00
mathieui
9a7c2c2136
Fix #3338 (cycle tabs with /w foo instead of picking the first)
2017-10-11 23:34:32 +02:00
mathieui
88903095c7
Fix #3339 (pure python poopt fails on multiline messages)
2017-10-11 23:07:17 +02:00
mathieui
bde9b31184
Set enable_avatars to false until the colors issue is fixed
2017-10-11 00:14:45 +02:00
mathieui
f61d46b061
Avoid an exception when we receive a presence from unknown nicks
...
add a log because it should not happen
2017-10-10 23:29:17 +02:00
mathieui
ef84a109e8
Fix #3190 (TOFU the SPKI hash and not the whole cert)
...
Makes letsencrypt renewals more pleasant.
Thanks jonasw and aioxmpp for the ASN.1 wizardry
2017-10-10 00:52:44 +02:00
mathieui
dcdc970acd
Micro-optimize MUC presence handling
...
Keep all presence before status code=110 in a buffer, then batch-process
them when receiving our initial join.
2017-10-10 00:22:09 +02:00
Emmanuel Gil Peyrot
68e3cdcd49
Fix resize in some unknown condition, thanks eijebong.
2017-10-09 17:09:15 +01:00
Georg Lukas
88ae8a68a2
Properly use ellipsis in #3293
2017-10-09 08:06:45 +01:00
mathieui
3b5ea1a961
Fix #3322 (send a beep when we get disconnected)
2017-10-09 01:06:53 +02:00
mathieui
156cfb5546
Fix #3056 (send inactive chatstate when leaving a tab)
2017-10-08 21:30:11 +02:00
Emmanuel Gil Peyrot
46487bed32
rostertab: Increase the size of the contact_info and avatar.
2017-10-08 19:40:25 +01:00
mathieui
f59fcc12ef
Fix #3257 (print cert hashes after validating the dialog)
2017-10-08 20:33:54 +02:00
mathieui
ff0095b44f
Fix #3336 (be clearer on "unbound" meaning)
2017-10-08 20:05:53 +02:00
mathieui
d70988b151
Fix #3293 (provide detailed presence in status line)
...
Less eye travel for short statuses.
(patch from Ge0rG)
2017-10-08 19:57:07 +02:00
mathieui
83ced76bb1
Fix #3281 (alias /subject to /topic)
2017-10-08 19:53:39 +02:00
Emmanuel Gil Peyrot
c2fad0d7dc
Don’t put the vCard/0084 tracebacks in the error log.
2017-10-08 16:09:00 +01:00
Emmanuel Gil Peyrot
f1b94534a4
Change all “not … in …” into “… not in …”.
2017-10-08 15:38:06 +01:00
Emmanuel Gil Peyrot
b2b6442672
Add a cache for 0084 avatars.
2017-10-08 15:23:51 +01:00
Emmanuel Gil Peyrot
ae7d2b4f9d
Add a cache for vCard avatars.
2017-10-08 15:09:49 +01:00
Emmanuel Gil Peyrot
e8e1e1bbd1
ImageWin: Remove some Python 3.6+ syntax.
2017-10-07 19:05:23 +01:00
Emmanuel Gil Peyrot
62344cb725
Fix vCard avatars, and increase retrieve timeout to one minute.
2017-10-07 18:53:05 +01:00
Emmanuel Gil Peyrot
554ff650bf
Display contact avatar in the roster.
...
Implements XEP-0084 and XEP-0153.
2017-10-07 18:11:33 +01:00
Emmanuel Gil Peyrot
232ef11630
windows: Add an ImageWin.
...
This adds an optional dependency on PIL.
2017-10-07 18:08:11 +01:00
Emmanuel Gil Peyrot
30b324cec4
windows: Remove useless __init__ overrides.
2017-10-07 16:34:39 +01:00
Emmanuel Gil Peyrot
b219c3dab7
rostertab: Import shell_split globally.
2017-10-07 14:05:11 +01:00
Emmanuel Gil Peyrot
27d2157c74
contact: Remove now-unused alias of presence to show.
2017-10-07 12:30:24 +01:00
Emmanuel Gil Peyrot
8eb7f73bef
user: Fix typo.
2017-10-07 12:30:02 +01:00
Emmanuel Gil Peyrot
4691f840c3
xhtml: Mark private functions with a leading underscore.
2017-10-07 12:29:41 +01:00
Emmanuel Gil Peyrot
82eb89c2e1
xhtml: Split parse_css_color out of parse_css.
2017-10-07 12:29:06 +01:00
mathieui
d19fef5e70
asyncio.async() is deprecated since python 3.5
2017-10-07 01:00:35 +02:00
mathieui
a8680cc86b
Fix #3334 (error when a service includes only the actor nick in a ban)
2017-10-07 00:56:48 +02:00
mathieui
d603126f9b
Fix #3332 (showing a join for a type="unavailable" presence)
...
When a user isn't in a room, but due to a component bug we receive a
unavailable presence, we were showing a join.
2017-10-07 00:10:38 +02:00
mathieui
9f1c0c3d54
Rename parse_message_line to parse_log_line
2017-09-28 00:59:45 +02:00
mathieui
d886c4d3dc
Add line start/end markers on the regex
2017-09-28 00:57:54 +02:00
mathieui
9f7041f65e
Use match groups instead of re.split because we don't want that
2017-09-28 00:32:10 +02:00
c88459c507
Add a no-op command
2017-09-11 17:41:31 +02:00
mathieui
0f10803c4d
Remove reconnect_max_attemps (unused)
2017-08-27 16:20:01 +02:00
Georg Lukas
c57bbe256e
Fix Logging - revert NARROW NO-BREAK SPACE (U+202F) to NO-BREAK SPACE (U+A0)
2017-08-13 14:35:16 +02:00
louiz’
ef22b509df
Fix reception of private messages (variable used but not defined)
2017-08-07 19:21:15 +02:00
Emmanuel Gil Peyrot
51b908348e
Simplify double negation.
2017-07-21 16:29:07 +01:00
mathieui
93129fb064
Fix message correction
2017-07-21 15:27:22 +02:00
mathieui
90f43e2bb5
Simplify /cycle as well
2017-07-20 23:54:28 +02:00
mathieui
360b1350b6
Fix /server_cycle weirdness
...
exit the rooms properly, call functions instead of full-blown commands,
do not randomly focus stabs, etc
2017-07-20 23:50:37 +02:00
Emmanuel Gil Peyrot
12136b48a5
handlers: Stop appending <replace/> elements on incoming messages.
...
Fixes #3186 .
2017-07-18 00:04:38 +01:00
Eijebong
a07c87bcbe
Fix the resource duplication when reconnecting while auto_reconnect is true.
...
The problem is that core.legitimate_disconnect is set to True in the
on_connecting callback which is called before the session_end for some
reasons. on_connecting sets core.legitimate_disconnect back to False so
session_end thinks we've been disconnected and connects automagically
adding a resource and thus duplicating everything.
Moving the reset of legitimate_disconnect to the on_connected callback
fixes the problem.
2017-06-27 20:41:03 +02:00
mathieui
bc08858b8a
Do not end log lines with a space
...
… it's about time I fixed this
2017-06-27 20:36:56 +02:00
mathieui
ffb8bbe63f
Remove extra colon
...
It creates a syntax error
2017-05-16 09:11:32 +02:00
Emmanuel Gil Peyrot
83e28a2be8
Add /add in conversation tabs.
...
This is a quick shortcut to add someone to your roster when talking
with them.
Fixes #3313 .
Also fixes typos.
2017-05-15 23:09:27 +01:00
Emmanuel Gil Peyrot
c66c5a6e27
Replace '/' with '-' in base64 hashes before saving an image.
...
Fixes #3312 .
2017-05-15 22:47:19 +01:00
Emmanuel Gil Peyrot
2419e82143
Send a <gone/> chatstate on /close.
...
Fixes #3296 .
2017-05-15 22:43:57 +01:00
Emmanuel Gil Peyrot
a3dfd55e04
Merge /unquery and /close into OneToOneTab.
2017-05-15 22:41:18 +01:00
Emmanuel Gil Peyrot
9dc23d422b
Fix XHTML-IM, broken in the previous commit.
2017-05-03 16:08:47 +01:00
Emmanuel Gil Peyrot
7228c9cf6d
Avoid some deprecation warnings when casting raw XML into bool. (thanks pypy3)
2017-05-03 16:07:11 +01:00
mathieui
e0f9de6d2f
Fix #3307 (add nickname to /join bookmark completion)
2017-04-09 21:29:47 +02:00
mathieui
f2a0caafaf
Fix #3149 (wipe xmltab messages for real with /clear)
2017-04-09 21:20:27 +02:00
mathieui
fa3e91aa6b
Fix ssl warning tab
...
It wasn’t blocking because the asyncio api slightly changed in december
which prevent us from running another event loop while a first one was
already running. This bypasses asyncio completely, thus avoiding future
problems (hopefully the select() API won’t change soon)
2017-04-09 20:26:51 +02:00
mathieui
f154dcbc82
Fix inline muc images
2017-04-06 23:26:59 +02:00
Emmanuel Gil Peyrot
2406204d1c
Add a pure-Python alternative to pooptmodule, for pypy3.
2017-04-01 19:10:33 +01:00
Emmanuel Gil Peyrot
d99558b9b8
Fix some typos in pooptmodule.
2017-04-01 19:09:53 +01:00
Georg Lukas
c8ee85cca7
self-ping: consider 'feature-not-implemented' a valid ping response
2017-03-28 10:50:46 +02:00
mathieui
e9a96470ba
Fix #3299 (/message <muc> is buggy)
...
Make /message <muc-bare-jid> send the message to the room instead of
failing.
2017-03-26 00:58:21 +01:00
mathieui
edd9b499e1
Force xmlns when parsing self-generated xhtml-im ( Fix #3274 )
2017-02-24 19:23:04 +01:00
Emmanuel Gil Peyrot
23927711c1
Stop using SHA-1 for generated filenames.
2017-02-24 17:05:29 +00:00