Commit graph

1638 commits

Author SHA1 Message Date
mathieui
186803d9a9 Fix formatting, some typos, and unused code, and add docstrings
- No idea why subclasses of ConversationTab were working before
    (info_header was overriden with None in __init__)
- Or why the date parsing worked (“Exeception”)
- Some more reformatting with pylint indications
- Document each module in the tabs module
2014-03-23 00:15:01 +01:00
mathieui
918e15d178 Fix a hidden traceback (NS_MUC_USER not exported in tabs/) 2014-03-22 17:20:15 +01:00
mathieui
1c621caae1 split the "tabs" module into separate files
- todo: write a common import file to avoid duplicating the imports
2014-03-19 02:22:25 +01:00
mathieui
be74128cb7 small refactor
- add a get_tabs(cls) method to avoid manual filtering
- move some stuff to avoid cyclic dependency hell between tab classes
2014-03-19 01:04:51 +01:00
mathieui
109b4aa1f4 Parse message timezones correctly 2014-02-23 20:30:55 +01:00
mathieui
d165f13a81
Bump dev version 2014-02-22 14:28:08 +01:00
Emmanuel Gil Peyrot
a64dd02118 Remove the dependency on poezio from xhtml.py 2014-02-22 01:11:57 +01:00
Emmanuel Gil Peyrot
9240bc3964 Move the XHTML-IM parser to SAX, to make it output a correct formatting, fixes #2239 and many more 2014-02-22 00:56:14 +01:00
mathieui
8ca738e8a9 Fix #2474 (bans aren’t logged) 2014-02-22 00:19:22 +01:00
mathieui
a9f0607123 Fix #2470 (server_cycle joining the wrong room with domain-only muc) 2014-02-20 08:39:40 +01:00
mathieui
35f3f53334 Fix a traceback in the commandinput
When the connection lags and the user presses tab,
poezio will insert a tab inside the input, wich has now
a specific formatting. This caused poezio to crash.
2014-02-17 21:44:40 +01:00
mathieui
4645bd7a2f Documentation update
ssl page (img & ref)
theming (compile errors, format and typos)
2014-02-17 20:21:54 +01:00
mathieui
384fd3e029 Call on_gain_focus on the new current tab after closing a tab 2014-02-14 00:59:59 +01:00
Mathieu Pasquet
05a9e03d53 Add a configurable way of setting cipher suites
And put reasonable defaults
2014-02-13 00:50:32 +01:00
mathieui
7e3efccb53 Fix #2407 (unencrypted connections)
Add a force_encryption option set to true by default.
2014-02-13 00:48:19 +01:00
mathieui
f43f06214e Fix #2458 (correctly display non-groupchat room messages) 2014-02-12 23:36:58 +01:00
mathieui
0320ee16d4 Remove the simple blocking warning (useless) 2014-02-04 20:17:03 +01:00
mathieui
2b9fb90ca7 Fix #2418 (Wrong character count in input with copy/pasted tabulations)
- Replace tabulations in the input by highlighted “t”s
- More readable, and less messy to deal with.
2014-02-03 23:57:18 +01:00
mathieui
199ac46d90 Fix #2208 (time_marker shows an useless timestamp) 2014-02-03 23:37:22 +01:00
mathieui
fe4404d3f0 Fix #2424 (actualize --MORE-- when doing /topic) 2014-02-03 22:51:08 +01:00
Florent Le Coz
925ea453f3 Do not crash on /names with invalid affiliations 2014-02-03 21:35:58 +01:00
mathieui
20e5c69503 Do not unlock a tab when receiving a presence from the same resource
(makes OTR bug)
2014-02-03 08:40:32 +01:00
mathieui
bf682651e0 Date the log records (error.log or debug logs) 2014-02-01 23:33:45 +01:00
mathieui
7c0cf0c8be Fix #2441 (don’t send chatstates in a non-chatstate conv)
Also enable chatstates when we receive them from our contacts.
2014-02-01 19:10:50 +01:00
mathieui
3fe044d5b8 Fix #2437 (show version in /self) 2014-02-01 18:34:43 +01:00
Mathieu Pasquet
b4b8f2a455 Fix #2430 (whatever) 2014-02-01 18:27:43 +01:00
Mathieu Pasquet
0153106145 Also do not send empty <replace/> with each message 2014-02-01 18:20:46 +01:00
Mathieu Pasquet
8fbf50fa8e Fix #2443 (:) 2014-02-01 17:57:24 +01:00
Mathieu Pasquet
c16fc9c3e9 Fix #2445 (autcorrect not showing in private convs) 2014-02-01 17:54:31 +01:00
Mathieu Pasquet
ccb3abd704 Exit on SIGPIPE 2014-01-30 18:23:44 +01:00
Mathieu Pasquet
bee12fd22b Fix the nickname with carbons 2014-01-30 15:16:49 +01:00
Mathieu Pasquet
7e4a565517 Fix a traceback when opening an empty log file 2014-01-29 16:44:43 +01:00
Mathieu Pasquet
8a44d31e85 Add a logging option to the OTR plugin
It is tab-specific and off by default.
2014-01-29 16:41:57 +01:00
Mathieu Pasquet
2ac24d6883 Provide a more standardized fingerprint representation
(also includes silent modification of the hash already
in the config)
2014-01-28 18:54:46 +01:00
mathieui
f9e70fa656 Previous commit with get/set 2013-12-28 17:16:35 +01:00
mathieui
83b44c863e Fix #2281 (display iq results when sent with /rawxml) 2013-12-28 16:57:36 +01:00
mathieui
91392c721f Fix #2414 (don’t use /tmp/dummy in the logging config) 2013-12-28 16:31:42 +01:00
Mathieu Pasquet
c0e010e2cd Write the config to a tmp file before a final copy
(should prevent some conditions leading to config
corruption happenning when poezio cannot write anymore)
2013-12-04 01:14:28 +01:00
Mathieu Pasquet
4a7e18cd03 Handle signals differently than /quit
- do not save the config (only for roster and stuff)
- do not except that resetting the curses state will work everytime
2013-12-04 00:11:44 +01:00
Mathieu Pasquet
0ad9712d0c refactor the texts in core to be more readable and fix some typos 2013-11-26 18:37:06 +01:00
Mathieu Pasquet
66d6c34f41 Fix a tb 2013-11-14 21:31:57 +01:00
Mathieu Pasquet
ff9478259d Add a /password command in the RosterTab
Thanks to Florob for the initial input
2013-11-14 21:26:19 +01:00
Florent Le Coz
0c507859fb On kick, get the actor 'nick', before trying the 'jid'
'nick' attribute has been introduced recently in the XEP. We still try the
'jid' attribute for backward compatibility. And also we don’t traceback
anymore if any of these fields is not present.
2013-11-13 00:42:08 +01:00
Florent Le Coz
e02f93a8ef Increase the number of chars to "jump" when the cursor goes out of the input 2013-10-21 00:41:50 +02:00
Florent Le Coz
32308646de And I forgot to scp this file :x 2013-10-21 00:22:39 +02:00
Florent Le Coz
b12a6b3ba9 Improve the input a lot
Noticeable changes:

- The input "view" is smarter, it always move to a decent position so we can
  see enough text around the cursor.
- The cursor goes at the end of the input when pasting some long text
- The formatting chars (^C and o, b, a, 1, 2, 3 etc) are now visible in the
  input. This makes it a lot easier to know where these special characters
  are, to change them and efficiently edit our text (we just lose a little,
  on the cosmetic side, but who cares)
- The code is actually a lot simpler in the functions to move the cursor,
  insert/delete chars: we do not have to deal with special cases where the
  formatting characters are actually composed of two chars.

fixes #2183
2013-10-20 23:42:13 +02:00
Mathieu Pasquet
dd4f8661a9 Fix #2358 (/correct is broken in private conversations) 2013-10-06 22:45:38 +02:00
Mathieu Pasquet
0124ac1b06 Give help about tab-specific command first in /help
(the tab-specific commands were executed first, but their help wasn’t
given first)
2013-10-06 19:52:57 +02:00
Mathieu Pasquet
08ce5c6d00 , 2013-10-06 18:55:16 +02:00
Mathieu Pasquet
030d4b4b2a Fix #2361 (extract the PEP list directly from the XEPs) 2013-10-06 18:44:41 +02:00