summary refs log tree commit diff stats
path: root/src/fe-gtk/plugin-notification.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-gtk/plugin-notification.c')
-rw-r--r--src/fe-gtk/plugin-notification.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-gtk/plugin-notification.c b/src/fe-gtk/plugin-notification.c
index 04a64213..47ba55ab 100644
--- a/src/fe-gtk/plugin-notification.c
+++ b/src/fe-gtk/plugin-notification.c
@@ -176,8 +176,13 @@ tray_cmd_cb (char *word[], char *word_eol[], gpointer userdata)
 int
 notification_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg)
 {
-	if (!notification_backend_init ())
+	const char* error = NULL;
+	if (!notification_backend_init (&error))
+	{
+		if (error)
+			hexchat_printf(plugin_handle, "Failed loading notification plugin: %s\n", error);
 		return 0;
+	}
 
 	ph = plugin_handle;
 	*plugin_name = "";