purple_plugin_get_error() returns "Plugin support is disabled" that is the case soc.2013.gobjectification.plugins

Sun, 11 Aug 2013 17:51:34 +0530

author
Ankit Vani <a@nevitus.org>
date
Sun, 11 Aug 2013 17:51:34 +0530
branch
soc.2013.gobjectification.plugins
changeset 36506
3c1e83926b66
parent 36505
60c161851325
child 36507
686376181100

purple_plugin_get_error() returns "Plugin support is disabled" that is the case

libpurple/plugins.c file | annotate | diff | comparison | revisions
--- a/libpurple/plugins.c	Sun Aug 11 17:44:04 2013 +0530
+++ b/libpurple/plugins.c	Sun Aug 11 17:51:34 2013 +0530
@@ -282,6 +282,7 @@
 const gchar *
 purple_plugin_get_error(const PurplePlugin *plugin)
 {
+#ifdef PURPLE_PLUGINS
 	PurplePluginInfoPrivate *priv;
 
 	g_return_val_if_fail(plugin != NULL, NULL);
@@ -292,6 +293,10 @@
 		return priv->error;
 	else
 		return _("This plugin does not return a PurplePluginInfo.");
+
+#else
+	return _("Plugin support is disabled.");
+#endif
 }
 
 GSList *

mercurial