diff plugins/musicmessaging/musicmessaging.c @ 13956:f61428cc4019

[gaim-migrate @ 16505] Change the music messaging plugin to not try to load if our D-BUS stuff is not initialized. Also extracted the gaim_notify_error() message code to a #define in src/dbus-server.c And print a debug warning if something tries to register a callback for a signal using a handle that we don't have any registered signals for committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 17 Jul 2006 06:21:53 +0000
parents f09c6e8df82c
children
line wrap: on
line diff
--- a/plugins/musicmessaging/musicmessaging.c	Mon Jul 17 05:50:28 2006 +0000
+++ b/plugins/musicmessaging/musicmessaging.c	Mon Jul 17 06:21:53 2006 +0000
@@ -259,6 +259,8 @@
 plugin_load(GaimPlugin *plugin) {
 	void *conv_list_handle;
 
+	GAIM_DBUS_RETURN_FALSE_IF_DISABLED(plugin);
+
     /* First, we have to register our four exported functions with the
        main gaim dbus loop.  Without this statement, the gaim dbus
        code wouldn't know about our functions. */