Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/xmpp.c @ 2118:51fde9c25401
Reset carbons when the connection is closed
Then, carbons are re-enabled when mcabber reconnects.
Thanks to sezuan for the report.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 09 Jun 2014 10:01:48 +0200 |
parents | 44c4b850263a |
children | fc7a758ebbde |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c Sun May 11 18:02:41 2014 +0200 +++ b/mcabber/mcabber/xmpp.c Mon Jun 09 10:01:48 2014 +0200 @@ -40,6 +40,7 @@ #include "settings.h" #include "utils.h" #include "main.h" +#include "carbons.h" #define RECONNECTION_TIMEOUT 60L @@ -952,6 +953,8 @@ if (rosternotes) lm_message_node_unref(rosternotes); rosternotes = NULL; + // Reset carbons + carbons_reset(); // Update display update_roster = TRUE; scr_update_buddy_window();