diff plugins/notify.c @ 1047:ece2d1543b20

[gaim-migrate @ 1057] Plugins now use GModule. Protocol plugins can be dynamically updated. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 01 Nov 2000 22:30:36 +0000
parents 91b7377e7b45
children 25f121faa75e
line wrap: on
line diff
--- a/plugins/notify.c	Wed Nov 01 11:34:56 2000 +0000
+++ b/plugins/notify.c	Wed Nov 01 22:30:36 2000 +0000
@@ -10,6 +10,13 @@
 	char buf[256];
 	struct conversation *cnv = find_conversation(*who);
 	GtkWindow *win;
+	char *me = g_strdup(normalize(gc->username));
+
+	if (!strcmp(me, normalize(*who))) {
+		g_free(me);
+		return;
+	}
+	g_free(me);
 
 	if (cnv == NULL)
 		cnv = new_conversation(*who);
@@ -35,7 +42,7 @@
 	}
 }
 
-void gaim_plugin_init(void *hndl) {
+char *gaim_plugin_init(GModule *hndl) {
 	handle = hndl;
 
 	gaim_signal_connect(handle, event_im_recv, received_im, NULL);