Commit graph

80 commits

Author SHA1 Message Date
Florent Le Coz
0800c666eb Set auto_reconnect to True by default 2014-12-04 15:30:18 +01:00
mathieui
a0a00d5e7d
Add our own JID to the roster 2014-11-29 18:53:02 +01:00
Florent Le Coz
e1808a8455 Parse command arguments using a decorator and make things more consistent
Avoid surprises with some commands accepting quoted arguments and some other
not.

fix #2555
2014-11-25 17:07:45 +01:00
mathieui
5cd854f7cc
Add a stream error handler in order to display error messages 2014-11-02 17:57:03 +01:00
mathieui
1c1ab3cb83
Merge branch 'master' of git.poez.io:poezio into slix
Conflicts:
	src/bookmark.py
	src/config.py
	src/connection.py
	src/core/commands.py
	src/core/core.py
	src/core/handlers.py
	src/windows/info_bar.py
	src/windows/muc.py
	src/windows/roster_win.py
	src/windows/text_win.py
	src/xhtml.py
2014-10-31 19:16:44 +01:00
mathieui
f097efd852
Fix some tracebacks on /set completion
(introduced by the automated default arguments of config.get)
2014-10-31 15:54:33 +01:00
mathieui
cedc5a6ec8
Fix the ssl check for asyncio 2014-10-30 19:55:19 +01:00
mathieui
616d0d2c73
Fix two potential tracebacks on /set completion 2014-10-29 23:28:20 +01:00
mathieui
9d58c9d32e
Fix #2719 (write/read in the plugin config files even when not loaded) 2014-10-20 23:24:27 +02:00
mathieui
6b8af2413e
Fix #2713 (make /set <option> return the value of the option)
Should work for any case (plugin, different section, etc)
2014-10-20 22:54:00 +02:00
mathieui
f9734cde56
Remove the (sometimes wrong) default values in the config.get() calls 2014-10-20 21:21:04 +02:00
mathieui
7b01c62e07
Change the API of Config.get_by_tabname
Make the "default" parameter optional and thus move it to the end of
the command with the other optional parameters.

And change all the calls.
2014-10-20 21:20:43 +02:00
mathieui
a9f642f743
Extract XHTML-IM inline imags by default
- Add two new options: tmp_image_dir and extract_inline_images
- tmp_image_dir is $XDG_CACHE_HOME(usually ~/.cache)/poezio/images if unset
- Name the images from a SHA-1 of their data and their mimetype
- Output file:// links inside the message
2014-10-16 18:56:12 +02:00
Florent Le Coz
d4590949f7 Do not ignore empty topics 2014-10-16 10:45:00 +02:00
mathieui
545ad1bd71
Merge branch 'master' of git.poez.io:poezio into slix
Conflicts:
	src/core/handlers.py
	src/tabs/xmltab.py
2014-10-14 15:51:30 +02:00
mathieui
5a5d5812ed
Add an open_all_bookmarks option
this option determines if the non-autojoin bookmarks will
be opened on startup or not.

It is false by default.
2014-10-12 23:06:44 +02:00
mathieui
8d2408c169
Use SHA-2 (SHA-512) to store the certificate fingerprint instead of SHA-1
Because SHA-1 is not really relevant anymore.
Too bad it's significantly longer and tiring to check, even if that is
to be expected.
2014-10-08 12:55:22 +02:00
mathieui
dc4f9cc35a
Fix #2692 (ad-hoc mistakes show /help list) 2014-10-03 22:46:21 +02:00
Florent Le Coz
37fe4be7ec Fix an other call to an old SleekXMPP function name 2014-09-30 22:11:38 +02:00
Florent Le Coz
07c4c53e03 Clear the numbers already entered on alt+j when the new one is not digit 2014-08-25 13:34:34 +02:00
Florent Le Coz
3ef9228211 Continuation keys (like after M-j or Ctrl-c) are handled without blocking 2014-08-07 23:20:21 +02:00
Florent Le Coz
30194a8a91 Fix a traceback when a receiving a message from a bare JID 2014-08-01 16:13:52 +02:00
Florent Le Coz
271fd662a1 Entirely remove the g_lock (used to avoid a few race conditions with ncures) 2014-08-01 16:00:01 +02:00
Florent Le Coz
ba93f3f236 Ad-hoc requests can be sent on any JID, not just servers 2014-08-01 15:12:58 +02:00
Florent Le Coz
992fe72554 Fix a few blocking iq, and remove all block=False function arguments 2014-08-01 15:01:25 +02:00
Florent Le Coz
3ec9e80de4 Little comments fix 2014-08-01 13:38:12 +02:00
Florent Le Coz
d84071a804 Privacy: do leak our last activy when our status is away or xa 2014-08-01 13:32:07 +02:00
Florent Le Coz
52f50cd949 The password used can be changed at runtime using /set and /reconnect 2014-08-01 04:07:38 +02:00
Florent Le Coz
df569d4e66 First implementation of auto_reconnect, poezio-side 2014-08-01 04:01:08 +02:00
Florent Le Coz
2fd71cd637 Display “authentication failed” only when all auth methods failed 2014-08-01 03:15:39 +02:00
Florent Le Coz
87cf38995a Make the TimedEvents work with asyncio
Improvements: events now occur precisely at the specified date. You don’t
need to stop touching your keyboard to execute them.
2014-08-01 01:22:59 +02:00
Florent Le Coz
55daf9d49d Make the resize work, using an ugly workaround
It seems efficient (more than the curses.endwin(); stdscr.refresh() stuf,
which is slow and really really ugly) and it doesn't break my lovely main
loop, so it’s all good (except that it uses shutil…)
2014-07-31 04:45:02 +02:00
Florent Le Coz
b0accad5c0 Make the bookmark stuff non-blocking 2014-07-30 17:35:21 +02:00
Florent Le Coz
39c8319ec4 Fix a bunch of iq.send() by removing the block argument 2014-07-30 17:35:21 +02:00
Florent Le Coz
ecf22cb4a4 Fix all the connect() reconnect() stuff
The /reconnect command should now properly work everytime.
2014-07-30 17:35:21 +02:00
Florent Le Coz
a404195a0a Send pings only when we are connected 2014-07-30 17:35:21 +02:00
Florent Le Coz
fccf7f5af7 Do not traceback when we receive a message from a JID with no resource 2014-07-28 14:58:26 +02:00
Florent Le Coz
c166e79a89 First adaptation to slixmpp 2014-07-24 15:19:26 +02:00
Florent Le Coz
9c3fece96b Use slixmpp 2014-07-24 02:11:45 +02:00
mathieui
e0e2123a4b
Fix #2534 (display who changed the topic) 2014-07-06 00:18:29 +02:00
Florent Le Coz
d11ea32f0b Fix a traceback when we trigger the reload using a signal 2014-07-01 17:54:40 +02:00
Florent Le Coz
900b67c01d get_tab_by_name() should specify a tab type whenever possible
For example, a tab can be named muc.example.com, if you do /list
muc.example.com.  If you then do /join muc.example.com, the error handler
needs to get the correct tab (the MucTab, not the MucListTab previously
opened).
This commit fixes the above issue (a traceback), and maybe some others like
that.
2014-05-31 17:37:15 +02:00
mathieui
97ef9d7fb9 Make detecting the features supported by the remote entity less awful
no more stalling while waiting for a disco info while sending a message.
2014-05-15 23:33:51 +02:00
mathieui
916416a019 Add an ugly fix to avoid endless disco#info queries with each message (with receipts)
We need to check if the remote entity supports 0184, but if it doesn’t
support disco#info, then we will get an iq type="error" and nothing
will be cached, leading to disco#info queries being sent each time.

Keep a cache valid 2 hours of the JIDs which replied with an error.
TODO: check that this the kind of time period we want.
2014-05-08 01:37:52 +02:00
mathieui
9786592b80 Fix a hidden traceback on error message outside MUCs 2014-05-08 00:27:26 +02:00
mathieui
c66bae5412 When closing a tab, go to the previous one, and not the one before it in the tab list 2014-05-06 00:27:05 +02:00
mathieui
c9059b98c7 Fix a traceback on adhoc error 2014-05-05 23:01:03 +02:00
mathieui
9c8d577737 Revert "Fix #2072 (only resize a tab if the size changed since the last display)"
This reverts commit b46f0f5e26.

Conflicts:
	src/tabs/muclisttab.py

Doing this made the unresized elements refresh in the old subwins,
causing glitches and weirdness. And anyway, the only problematic
element is the TextWin (rebuilding all the lines of a buffer is
expensive), but it already checks if the width changed.
2014-05-05 20:01:04 +02:00
mathieui
5cfe79e5e1 Do not beep in a MUC if we receive a message from one of our resources
happens when beep_on contains "message".

thanks eijebong
2014-05-04 23:31:25 +02:00
Florent Le Coz
d78b7df68b Implement the execution of ad-hoc commands (#1832) 2014-05-04 21:05:47 +02:00