Commit graph

3200 commits

Author SHA1 Message Date
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
0a4d66a657 Improve the poopt test 2017-10-12 00:17:09 +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
ee5e807fc2 Add a poopt.cut_text multiline unit test 2017-10-11 23:06:57 +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
fb68132e8a Add documentation on enable_avatar 2017-10-10 13:07: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
mathieui
7592aebcdc Fix #3245 (make /exec async)
and also do not vomit stderr on top of poezio, but put it in an info
message
2017-10-08 21:45:15 +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
mathieui
3775e476b6 Fix tests 2017-10-07 22:04:34 +02:00
mathieui
4b51ce97e9 Fix update.sh for debian (?)
hopefully
2017-10-07 20:59:38 +02: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