diff options
Diffstat (limited to 'facebook/facebook.c')
-rw-r--r-- | facebook/facebook.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/facebook/facebook.c b/facebook/facebook.c index 23a8864..dcf4071 100644 --- a/facebook/facebook.c +++ b/facebook/facebook.c @@ -300,7 +300,10 @@ fb_cb_api_error(FbApi *api, GError *error, gpointer data) ic = fb_data_get_connection(fata); fb_util_debug_error("%s", error->message); imcb_error(ic, "%s", error->message); - imc_logout(ic, recon); + + if (!g_error_matches(error, FB_API_ERROR, FB_API_ERROR_NONFATAL)) { + imc_logout(ic, recon); + } } static void @@ -1187,3 +1190,24 @@ init_plugin(void) root_command_add("fbcreate", 0, fb_cmd_fbcreate, 0); root_command_add("fbjoin", 0, fb_cmd_fbjoin, 0); } + + +#ifdef BITLBEE_ABI_VERSION_CODE +G_MODULE_EXPORT struct plugin_info * +init_plugin_info(void); + +G_MODULE_EXPORT struct plugin_info * +init_plugin_info(void) +{ + static struct plugin_info info = { + BITLBEE_ABI_VERSION_CODE, + "facebook", + PACKAGE_VERSION, + "Facebook protocol plugin", + "dequis <dx@dxzone.com.ar> (maintainer), James Geboski <jgeboski@gmail.com> (original author)", + PACKAGE_URL + }; + + return &info; +} +#endif /* BITLBEE_ABI_VERSION_CODE */ |