changeset 1046:4593605da0e2

[gaim-migrate @ 1056] 1. made it compile again (gc->groups instead of just groups, account_online(user, gc) instead of just (gc), and most things are GSLists now, oh yeah, serv_got_update(gc, ...) and add_buddy(gc, ...)). 2. took out the stuff to set up the buddy list window, because account_online handles that now 3. change the init function to use load_protocol(), which is the new interface for loading a new protocol. it's basically the same but without actually touching the protocols list. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 01 Nov 2000 11:34:56 +0000
parents e281fe55bc78
children ece2d1543b20
files plugins/irc.c
diffstat 1 files changed, 5 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/irc.c	Wed Nov 01 11:22:29 2000 +0000
+++ b/plugins/irc.c	Wed Nov 01 11:34:56 2000 +0000
@@ -115,8 +115,8 @@
 
 void irc_request_buddy_update ( struct gaim_connection *gc ) {
 	struct irc_data *idata = (struct irc_data *)gc->proto_data;
-	GSList *grp = groups;
-	GList *person;
+	GSList *grp = gc->groups;
+	GSList *person;
 	struct group *g;
 	struct buddy *b;
 	struct irc_channel *u;
@@ -506,7 +506,7 @@
 				u = temp->data;		
 			
 				/* Tell Gaim to bring the person on or off line */
-				serv_got_update(u->name, u->id, 0, 0, 0, 0, 0);	
+				serv_got_update(gc, u->name, u->id, 0, 0, 0, 0, 0);	
 			
 				/* Grab the next entry */
 				temp = g_slist_next(temp);
@@ -876,16 +876,8 @@
 
 
 	/* Now lets sign ourselves on */
-        account_online(gc);
-
-	if (mainwindow)
-		gtk_widget_hide(mainwindow);
-	
-	show_buddy_list();
-	refresh_buddy_window();
-	
+        account_online(user, gc);
 	serv_finish_login(gc);
-	gaim_setup(gc);
 
 	if (bud_list_cache_exists(gc))
 		do_import(NULL, gc);
@@ -935,6 +927,6 @@
 }
 
 int gaim_plugin_init(void *handle) {
-	protocols = g_slist_append(protocols, irc_init());
+	load_protocl(irc_init);
 	return 0;
 }