diff src/protocols/rendezvous/rendezvous.c @ 8842:ad3633f92f91

[gaim-migrate @ 9609] Just clean up one or four things. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 29 Apr 2004 02:42:31 +0000
parents 01c3db200c8f
children 294ae6548d4e
line wrap: on
line diff
--- a/src/protocols/rendezvous/rendezvous.c	Wed Apr 28 05:14:20 2004 +0000
+++ b/src/protocols/rendezvous/rendezvous.c	Thu Apr 29 02:42:31 2004 +0000
@@ -599,60 +599,7 @@
 
 static GaimPlugin *my_protocol = NULL;
 
-static GaimPluginProtocolInfo prpl_info =
-{
-	GAIM_PRPL_API_VERSION,
-	OPT_PROTO_NO_PASSWORD | OPT_PROTO_BUDDY_ICON,
-	NULL,
-	NULL,
-	rendezvous_prpl_list_icon,
-	rendezvous_prpl_list_emblems,
-	rendezvous_prpl_status_text,
-	rendezvous_prpl_tooltip_text,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	rendezvous_prpl_login,
-	rendezvous_prpl_close,
-	rendezvous_prpl_send_im,
-	NULL,
-	NULL,
-	NULL,
-	rendezvous_prpl_set_away,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL,
-	NULL
-};
+static GaimPluginProtocolInfo prpl_info;
 
 static GaimPluginInfo info =
 {
@@ -687,20 +634,31 @@
 	GaimAccountOption *option;
 	char hostname[255];
 
+	prpl_info.api_version	= GAIM_PRPL_API_VERSION;
+	prpl_info.options		= OPT_PROTO_NO_PASSWORD | OPT_PROTO_BUDDY_ICON;
+	prpl_info.list_icon		= rendezvous_prpl_list_icon;
+	prpl_info.list_emblems	= rendezvous_prpl_list_emblems;
+	prpl_info.status_text	= rendezvous_prpl_status_text;
+	prpl_info.tooltip_text	= rendezvous_prpl_tooltip_text;
+	prpl_info.login			= rendezvous_prpl_login;
+	prpl_info.close			= rendezvous_prpl_close;
+	prpl_info.send_im		= rendezvous_prpl_send_im;
+	prpl_info.set_away		= rendezvous_prpl_set_away;
+
 	if (gethostname(hostname, 255) != 0) {
 		gaim_debug_warning("rendezvous", "Error %d when getting host name.  Using \"localhost.\"\n", errno);
 		strcpy(hostname, "localhost");
 	}
 
 	/* Try to avoid making this configurable... */
-	split = gaim_account_user_split_new(_("Host Name"), hostname, '@');
+	split = gaim_account_user_split_new(_("Host name"), hostname, '@');
 	prpl_info.user_splits = g_list_append(prpl_info.user_splits, split);
 
-	option = gaim_account_option_string_new(_("First Name"), "first", "Gaim");
+	option = gaim_account_option_string_new(_("First name"), "first", "Gaim");
 	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
 											   option);
 
-	option = gaim_account_option_string_new(_("Last Name"), "last", _("User"));
+	option = gaim_account_option_string_new(_("Last name"), "last", _("User"));
 	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options,
 											   option);