diff src/aim.c @ 780:c714def9cebb

[gaim-migrate @ 790] You may be a geek if... You've ever used a computer on Friday, Saturday and Sunday of the same weekend. You find yourself interrupting computer store salesman to correct something he said. The first thing you notice when walking in a business is their computer system. ...and offer advice on how you would change it. You've ever mounted a magnetic tape reel. You own any shareware. You know more IP addresses than phone numbers. You've ever accidentally dialed an IP address. Your friends use you as tech support. You've ever named a computer. You have your local computer store on speed dial. You can't carry on a conversation without talking about computers. Co-workers have to E-mail you about the fire alarm to get you out of the building. You've ever found "stray" diskettes when doing laundry. Your computer has it's own phone line - but your teenager doesn't. You check the national weather service web page for current weather conditions (rather than look out the window). You know more URLs than street addresses. Your pet has a web page. You get really excited when Yahoo adds your link. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 29 Aug 2000 03:59:01 +0000
parents 531c58849b28
children 4c292b3f74ea
line wrap: on
line diff
--- a/src/aim.c	Tue Aug 29 02:57:48 2000 +0000
+++ b/src/aim.c	Tue Aug 29 03:59:01 2000 +0000
@@ -92,22 +92,12 @@
 #else
 #ifdef GAIM_PLUGINS
 	GList *c;
-	struct gaim_callback *g;
 	struct gaim_plugin *p;
-	void (*function)(void *);
 	void (*gaim_plugin_remove)();
 	char *error;
 
 	/* first we tell those who have requested it we're quitting */
-	c = callbacks;
-	while (c) {
-		g = (struct gaim_callback *)c->data;
-		if (g->event == event_quit && g->function != NULL) {
-			function = g->function;
-			(*function)(g->data);
-		}
-		c = c->next;
-	}
+	plugin_event(event_quit, 0, 0, 0);
 
 	/* then we remove everyone in a mass suicide */
 	c = plugins;
@@ -240,21 +230,7 @@
 			NULL);
 #endif /* USE_APPLET */
 
-#ifdef GAIM_PLUGINS
-	 {
-		GList *c = callbacks;
-		struct gaim_callback *g;
-		void (*function)(void *);
-		while (c) {
-			g = (struct gaim_callback *)c->data;
-			if (g->event == event_signon && g->function != NULL) {
-				function = g->function;
-				(*function)(g->data);
-			}
-			c = c->next;
-		}
-	 }
-#endif /* GAIM_PLUGINS */
+	plugin_event(event_signon, 0, 0, 0);
 
 	 running = FALSE;
 	 return;