summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/plugin-notification.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fe-gtk/plugin-notification.c b/src/fe-gtk/plugin-notification.c
index 47ba55ab..3ac89244 100644
--- a/src/fe-gtk/plugin-notification.c
+++ b/src/fe-gtk/plugin-notification.c
@@ -177,6 +177,12 @@ int
 notification_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg)
 {
 	const char* error = NULL;
+
+	ph = plugin_handle;
+	*plugin_name = "";
+	*plugin_desc = "";
+	*plugin_version = "";
+
 	if (!notification_backend_init (&error))
 	{
 		if (error)
@@ -184,11 +190,6 @@ notification_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, cha
 		return 0;
 	}
 
-	ph = plugin_handle;
-	*plugin_name = "";
-	*plugin_desc = "";
-	*plugin_version = "";
-
 	hexchat_hook_print (ph, "Channel Msg Hilight", HEXCHAT_PRI_LOWEST, incoming_hilight_cb, NULL);
 	hexchat_hook_print (ph, "Channel Action Hilight", HEXCHAT_PRI_LOWEST, incoming_hilight_cb, NULL);