diff src/dialogs.c @ 391:be408b41c172

[gaim-migrate @ 401] Plugins got updated. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 12 Jun 2000 11:30:05 +0000
parents fd3cc0a28d5d
children 7c74e2f579b5
line wrap: on
line diff
--- a/src/dialogs.c	Mon Jun 12 08:11:26 2000 +0000
+++ b/src/dialogs.c	Mon Jun 12 11:30:05 2000 +0000
@@ -309,7 +309,8 @@
         g_list_free(dialogwindows);
         dialogwindows = NULL;
 
-	do_im_back(NULL, NULL);
+	if (awaymessage)
+		do_im_back(NULL, NULL);
 
         if (imdialog) {
                 destroy_dialog(NULL, imdialog);
@@ -450,14 +451,28 @@
 
 
 
-void show_error_dialog(char *c)
+void show_error_dialog(char *d)
 {
 
-	int no = atoi(c);
+	int no = atoi(d);
 	char *w = strtok(NULL, ":");
 	char buf[256];
 	char buf2[32];
  	
+#ifdef GAIM_PLUGINS
+	GList *c = callbacks;
+	struct gaim_callback *g;
+	void (*function)(int, void *);
+	while (c) {
+		g = (struct gaim_callback *)c->data;
+		if (g->event == event_error && g->function != NULL) {
+			function = g->function;
+			(*function)(no, g->data);
+		}
+		c = c->next;
+	}
+#endif
+
 	
         switch(no) {
         case 69: