Commit graph

703 commits

Author SHA1 Message Date
Damir Jelić
14f4da0708 bar_items: Make the encrypted room sign configurable. 2018-11-15 11:07:35 +01:00
Damir Jelić
c1037620fa bar_items: Make the busy sign configurable. 2018-11-14 20:07:39 +01:00
Damir Jelić
d93184f2ed server: Don't delay consecutive syncs by two seconds. 2018-11-12 15:32:59 +01:00
Damir Jelić
0e3c0724e0 globals: Increase MAX_EVENTS. 2018-11-12 15:31:45 +01:00
Damir Jelić
a638ef3e5f server: Remove some debug output. 2018-11-12 15:31:23 +01:00
Damir Jelić
6f29d1154d server: Add some type definitions. 2018-11-12 15:30:56 +01:00
Damir Jelić
7e15b04f98 config: Add the lag_min_show option. 2018-11-12 15:30:28 +01:00
Damir Jelić
a08400c975 buffer: Don't put a space in the matrix_id tag. 2018-11-09 17:57:26 +01:00
Damir Jelić
f1e96f7a28 Merge branch 'pr-17' into olm-command 2018-11-07 13:52:14 +01:00
Damir Jelić
2022151bd0 tests: Add initial buffer tests. 2018-11-07 13:50:55 +01:00
Denis Kasak
ef7b2b7eaf Fix FormattedString test failure.
Initialize FormattedString().attributes to DEFAULT_ATTRIBUTES so all the
attributes are always present. FormattedString is now a class, not
a namedtuple instance.
2018-11-07 13:34:44 +01:00
Damir Jelić
e05af8fad3 Merge branch 'pr-16' into olm-command 2018-11-07 13:30:52 +01:00
Denis Kasak
9b6ca78866 Don't use eval_cast for pygments_style option. 2018-11-07 13:24:22 +01:00
Damir Jelić
caf74ceb1f config: Add documentation. 2018-11-07 13:16:11 +01:00
Denis Kasak
a74ac888a3 Fix typo: DEFAULT_ATRIBUTES -> DEFAULT_ATTRIBUTES 2018-11-07 12:57:32 +01:00
Denis Kasak
560c8d0c54 Make pygments style configurable. 2018-11-07 12:34:31 +01:00
Denis Kasak
1a796322f3 Simplify Formatted.to_weechat logic. 2018-11-07 12:34:28 +01:00
Damir Jelić
aae5732018 buffer: Update the buffer name after a room name event in the state. 2018-11-06 22:09:10 +01:00
Damir Jelić
6422381ae5 buffer: Add the room_id to a buffer localvar. 2018-11-06 22:08:33 +01:00
Damir Jelić
3f3c5f9fba buffer: Add a localvar containing the room domain. 2018-11-06 13:59:03 +01:00
Damir Jelić
59b318bdce buffer: Handle messages containing a transaction id. 2018-11-05 21:59:25 +01:00
Damir Jelić
fd9053eacd server: Support printing out sent messages before finishing the request. 2018-11-03 16:44:40 +01:00
Damir Jelić
286b15aa86 bar_items: Make the encryption warning sign configurable. 2018-11-03 12:30:20 +01:00
Damir Jelić
e8fa66bbcb config: Improve the lazy_load_room_users help message. 2018-11-02 14:10:08 +01:00
Damir Jelić
b8c655b3d4 commands: Update the buffer modes bar items after an olm command run. 2018-11-02 14:04:22 +01:00
Damir Jelić
34b884b892 buffer: Fix the printing of our own action messages. 2018-11-02 13:53:20 +01:00
Damir Jelić
0bc297ba94 server: Make the lag reconnect time configurable. 2018-11-01 13:34:55 +01:00
Damir Jelić
b844a26c41 server: Clear the encryption queue if we encounter an olm trust error. 2018-11-01 12:47:58 +01:00
Damir Jelić
ec995e6c8f main: Use the server error method for hook connect errors. 2018-11-01 12:47:18 +01:00
Damir Jelić
64bea928ef bar_items: Add a typing notice bar item. 2018-11-01 11:56:43 +01:00
Damir Jelić
6e27082c1a server: Don't use clear() on a list since it's python3 only. 2018-10-31 09:27:37 +01:00
Damir Jelić
c29db687e4 server: Send out a hsignal when a device change occurs. 2018-10-30 22:58:36 +01:00
Damir Jelić
441acbadc7 server: Print out trust errors in the room buffer. 2018-10-30 21:13:59 +01:00
Damir Jelić
c8e2e66537 server: Update the bar items when a key query completes. 2018-10-30 21:13:35 +01:00
Damir Jelić
74efe8ef9b server: Add a maximum value for the number of nicklist users. 2018-10-30 21:12:41 +01:00
Damir Jelić
d896962b19 matrix: Add option to fetch members only when we switch to the buffer. 2018-10-30 17:20:44 +01:00
Damir Jelić
0710b7f77d buffer: Don't add already added users to the RoomBuffer. 2018-10-30 16:15:57 +01:00
Damir Jelić
3be1b7bfc3 server: Use server side lazy user loading. 2018-10-30 16:15:27 +01:00
Damir Jelić
60282b4eec buffer: Support encrypted attachments.
Note, the printed url should be passed to a helper program that will
download the file and decrypt it.
2018-10-21 19:01:52 +02:00
Damir Jelić
45d83cc1b1 buffer: Post the encryption error message in the current buffer. 2018-10-21 13:36:01 +02:00
Damir Jelić
a46a50fd74 server: Close the socket even if shutdown() raises an exception. 2018-10-19 18:10:04 +02:00
Damir Jelić
fbf56d3491 main: Close the file descriptor we get from hook_connect().
We create a python socket object with fromfd() which duplicates the file
descriptor we get from hook_connect(). Close the unneeded file descriptor
instead of leaking it.
2018-10-19 18:03:08 +02:00
Damir Jelić
53b514809c server: Only hook the lazy hook if it isn't already hooked. 2018-10-15 22:18:15 +02:00
Damir Jelić
ccb263977a commands: Fix buffer clearing. 2018-10-15 22:15:44 +02:00
Damir Jelić
8f1c79e640 main: Catch the CertificateError exception when doing the ssl handshake. 2018-10-15 22:14:43 +02:00
Damir Jelić
0a8e491b00 config: Fix log level and category setting. 2018-10-14 14:16:51 +02:00
Damir Jelić
a97af644cd commands: Use unicode literals. 2018-10-14 14:02:37 +02:00
Damir Jelić
167bf0c07a buffer: Don't mark encryption as unsupported anymore. 2018-10-14 13:13:18 +02:00
Damir Jelić
868a47eca7 commands: Misc olm command fixes. 2018-10-14 12:47:47 +02:00
Damir Jelić
d66621578b buffer: Remove the buffer from the server buffer list if it has been closed. 2018-10-14 11:56:47 +02:00