Commit graph

400 commits

Author SHA1 Message Date
Denis Kasak
cb8b589bc9 Fix handling of empty room names.
When room names that were previously set get deleted, the server still
returns the name key, but set to the value of an empty string. Handle
this case as if there is no room name.
2018-03-08 11:08:44 +01:00
poljar (Damir Jelić)
207fb44bdc colors: Add markdown style italics support. 2018-03-06 22:57:57 +01:00
poljar (Damir Jelić)
16a2215cfc utils: Rename age to timestamp in server_ts_to_weechat. 2018-03-06 17:18:30 +01:00
poljar (Damir Jelić)
dc25487127 rooms: Add canonical alias event handling. 2018-03-06 17:17:54 +01:00
poljar (Damir Jelić)
e5b08f653a rooms: Don't use room aliases to change the buffer name. 2018-03-06 16:53:44 +01:00
poljar (Damir Jelić)
9a656d0432 rooms: Don't use event age, use their timestamp. 2018-03-06 16:53:04 +01:00
poljar (Damir Jelić)
51eb474477 rooms: Add more coloring to the membership messages. 2018-03-06 16:15:27 +01:00
poljar (Damir Jelić)
57718f82e9 rooms: Fix the nick in quit messages. 2018-03-06 16:02:46 +01:00
poljar (Damir Jelić)
a1b6087bf4 rooms: Print out membership events. 2018-03-06 15:52:30 +01:00
poljar (Damir Jelić)
996270df0d server: Only limit the sync if we don't have a next batch. 2018-03-06 13:53:34 +01:00
poljar (Damir Jelić)
01b8c44814 utils: Fix typo in tags formatting function. 2018-03-06 11:19:15 +01:00
Denis Kasak
b0872922ec Implement /kick. 2018-03-06 09:36:22 +01:00
Denis Kasak
7434285ffb Support weechat proxies. 2018-03-03 23:56:51 +01:00
poljar (Damir Jelić)
4a7b200ba4 utils: Align the user names in the nicklist. 2018-03-03 14:42:09 +01:00
Denis Kasak
d7485cc746 Always output HTML colors as hex codes. 2018-03-03 12:34:26 +01:00
Denis Kasak
8bb383220f Fix numbering comment for color "white". 2018-03-03 12:34:26 +01:00
Denis Kasak
cc993df68e Rename first_16 -> weechat_basic_colors. 2018-03-03 12:34:26 +01:00
Denis Kasak
59138a9824 if -> elif 2018-03-03 12:34:26 +01:00
Denis Kasak
c18c10774e Remove erroneously repeated condition. 2018-03-03 12:34:26 +01:00
Denis Kasak
f47e167023 Clarify help message for /redact. 2018-03-03 12:34:26 +01:00
Denis Kasak
86309740a0 Fix quotes in help message. 2018-03-03 12:34:26 +01:00
Denis Kasak
a73c887ee3 Some style changes to help/error messages. 2018-03-03 12:34:26 +01:00
Denis Kasak
23df2d4bcb Fix wording in error message. 2018-03-03 12:34:26 +01:00
Denis Kasak
7aa2927289 Fix command in examples. 2018-03-03 12:34:26 +01:00
poljar (Damir Jelić)
fc6a6e9da9 tests: Implement mock weechat module and add some color tests. 2018-03-02 22:59:43 +01:00
poljar (Damir Jelić)
404f785f21 Add TODO. 2018-03-01 21:03:36 +01:00
poljar (Damir Jelić)
d1869cd5d6 server: Store the device id.
The device id now gets saved and reused for logins.
2018-03-01 13:58:33 +01:00
poljar (Damir Jelić)
4fc5b8b41e colors: Produce email style quotes from html block quotes. 2018-03-01 11:56:38 +01:00
poljar (Damir Jelić)
a606ac088a Only put a prefix string if there is a prefix. 2018-02-28 21:29:15 +01:00
poljar (Damir Jelić)
92b35dfd8c Colorize the nicks when printing out messages. 2018-02-28 21:09:18 +01:00
poljar (Damir Jelić)
97dbda95a7 Fix membership parsing.
The spec requires the membership status to be inside of the content,
even though sometimes it's outside of it as well.
2018-02-28 19:40:16 +01:00
poljar (Damir Jelić)
0f08584744 Try to update the highlight status as well in the backlog event.
Updating the highlight status of a line currently isn't possible in
weechat. Hopefully future weechat versions will allow this.
2018-02-28 18:30:39 +01:00
poljar (Damir Jelić)
0b5ceb8526 Another map that doesn't get executed in python3. 2018-02-28 18:30:10 +01:00
poljar (Damir Jelić)
b2c5a003d2 Remove unused imports. 2018-02-28 15:55:12 +01:00
poljar (Damir Jelić)
8e43fe1533 Fix cert digest calculation under python3.
Openssl's digest function takes a byte string on python2 and a unicode
string on python3. Use bytes_to_native_str for this conversion.
2018-02-28 15:53:33 +01:00
poljar (Damir Jelić)
cd2788553c Use a for loop instead of map in the join info event.
map returns an iterator on python3, the function won't get executed
unless we ask for the result, since the function doesn't return a result
we'll use a for loop instead of complicating things unnecessarily.
2018-02-28 15:33:48 +01:00
poljar (Damir Jelić)
f247daf51d Print out certificate info. 2018-02-28 14:38:02 +01:00
poljar (Damir Jelić)
f9971ce443 Print out a message when logging in. 2018-02-27 19:56:02 +01:00
poljar (Damir Jelić)
6822084d59 Add ability to send emote messages using the /me command. 2018-02-26 23:31:53 +01:00
poljar (Damir Jelić)
4f848da7fe Reuse RoomMessageText class for our own messages. 2018-02-26 22:35:01 +01:00
poljar (Damir Jelić)
01ad6e9d9a Handle notice messages. 2018-02-26 19:57:19 +01:00
poljar (Damir Jelić)
6db44525dc Abstract away unknown messages and emote messages. 2018-02-26 19:36:02 +01:00
poljar (Damir Jelić)
2b428ac132 Handle emote messages. 2018-02-26 19:22:54 +01:00
poljar (Damir Jelić)
13d70ae867 Handle media messages. 2018-02-26 18:21:40 +01:00
poljar (Damir Jelić)
2fc2828dd0 Fix is_formatted check. 2018-02-26 11:40:15 +01:00
poljar (Damir Jelić)
2d364c1a8e Small formatting fix. 2018-02-25 20:13:07 +01:00
poljar (Damir Jelić)
882a880e60 Handle empty diplay_name for message printing. 2018-02-25 19:23:46 +01:00
poljar (Damir Jelić)
15f814bee8 Add room encrytpion event. 2018-02-25 19:18:44 +01:00
poljar (Damir Jelić)
fb47b94252 Remove unused imports. 2018-02-25 18:53:42 +01:00
poljar (Damir Jelić)
d97323e7e8 Catch exceptions for room events and print out a error message. 2018-02-25 18:53:11 +01:00