comparison src/server.c @ 5954:fccc33d4b8fa

[gaim-migrate @ 6398] I made serv_set_info or whatever it's called take a const char * I don't really remember why I also made some other small changes There should be no functionality change I'm still struggling to get available messages working. They haunt my dreams. Like the gray gorilla, or the Silhouette of the past, fading into the dim light of the moon. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 25 Jun 2003 04:20:30 +0000
parents b3c412884a22
children 272c761c52e3
comparison
equal deleted inserted replaced
5953:bc71bd31c223 5954:fccc33d4b8fa
145 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); 145 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
146 146
147 account = gaim_connection_get_account(gc); 147 account = gaim_connection_get_account(gc);
148 148
149 if (gaim_account_get_user_info(account) != NULL) { 149 if (gaim_account_get_user_info(account) != NULL) {
150 /* g_malloc(strlen(gc->user->user_info) * 4); 150 /* buf = strdup_withhtml(gc->user->user_info); */
151 strncpy_withhtml(buf, gc->user->user_info, strlen(gc->user->user_info) * 4); */ 151 serv_set_info(gc, gaim_account_get_user_info(account));
152 serv_set_info(gc, (char *)gaim_account_get_user_info(account));
153 /* g_free(buf); */ 152 /* g_free(buf); */
154 } 153 }
155 154
156 if (gc->idle_timer > 0) 155 if (gc->idle_timer > 0)
157 g_source_remove(gc->idle_timer); 156 g_source_remove(gc->idle_timer);
356 355
357 serv_set_away(g, GAIM_AWAY_CUSTOM, message); 356 serv_set_away(g, GAIM_AWAY_CUSTOM, message);
358 } 357 }
359 } 358 }
360 359
361 void serv_set_info(GaimConnection *g, char *info) 360 void serv_set_info(GaimConnection *g, const char *info)
362 { 361 {
363 GaimPluginProtocolInfo *prpl_info = NULL; 362 GaimPluginProtocolInfo *prpl_info = NULL;
364 363
365 if (g != NULL && g->prpl != NULL) 364 if (g != NULL && g->prpl != NULL)
366 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(g->prpl); 365 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(g->prpl);