1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
Go to file
Dmitry Podgorny 4344ee2a5a Don't clear saved account data in session_disconnect()
If connection loss occurs, it calls session_disconnect() eventually.
This function clears saved account data which is required for
reconnection. Therefore, when reconnect timer expires, we get errors:

02/06/2019 04:53:42: stderr: ERR: (profanity:17115): GLib-CRITICAL **:
                     04:53:42.305: g_key_file_has_group: assertion
                     'group_name != NULL' failed
02/06/2019 04:53:43: prof: ERR: Unable to reconnect, account no longer
                     exists: (null)

To solve it, don't clear the saved data in session_disconnect(). It will
be cleared properly on connection loss if reconnect timer is not
configured. But won't be cleared with /disconnect command.
So, after /disconnect the data will live in memory until the next
/connect.

Also, remove some copy-paste in connection loss path.
2019-06-03 13:21:52 +03:00
apidocs Update copyright 2018-01-21 15:00:02 +00:00
docs Update profanity repo URL 2019-05-03 10:51:28 +02:00
icons better, final icons 2016-03-09 12:55:57 +01:00
src Don't clear saved account data in session_disconnect() 2019-06-03 13:21:52 +03:00
tests Use mock_type() for casting mock() 2019-05-08 21:52:16 +02:00
themes Rename mucconf wins into conf wins 2018-09-05 13:51:00 +02:00
.gitignore Update plugin API docs 2016-08-02 23:17:28 +01:00
.travis.yml Move travis from Ubuntu to docker+openSUSE 2019-04-13 23:18:44 +02:00
bootstrap.sh Remove -fv flags from autoreconf 2016-09-13 00:47:54 +01:00
CHANGELOG Update profanity repo URL 2019-05-03 10:51:28 +02:00
configure-debug Include python plugins by default in build 2016-07-24 01:34:02 +01:00
configure-plugins Added python plugins code 2016-02-24 00:31:55 +00:00
configure.ac Update profanity repo URL 2019-05-03 10:51:28 +02:00
COPYING Added GPL 2012-02-20 20:07:38 +00:00
Dockerfile Set locale in docker container 2019-04-14 10:39:24 +02:00
LICENSE.txt Update copyright years 2019-04-24 01:08:38 +02:00
Makefile.am Create seperate function for disconnect cleanup 2019-05-19 22:57:51 +02:00
prof.supp Fix memory leaks 2016-06-08 22:23:00 +01:00
profanity.spec Update profanity URL in spec file 2019-05-03 10:28:04 +02:00
profrc.example Added example profrc config 2014-06-29 22:58:33 +01:00
README.md Update travis URL 2019-05-03 10:59:39 +02:00
RELEASE_GUIDE.md Update profanity repo URL 2019-05-03 10:51:28 +02:00
theme_template Add occupants char 2019-05-02 17:01:55 +02:00
travis-build.sh Set locale in docker container 2019-04-14 10:39:24 +02:00

Profanity Build Status

Profanity is a console based XMPP client inspired by Irssi,

alt tag

See the User Guide for information on installing and using Profanity.

Homepage: https://profanity-im.github.io/

Mailing List: https://groups.google.com/forum/#!forum/profanitydev

MUC: profanity@rooms.dismail.de

Plugins repository: https://github.com/profanity-im/profanity-plugins