diff src/account.c @ 9988:d770673338f4

[gaim-migrate @ 10901] (15:20:15) grim elite: ok.. i just got to make a big #if 0 because the custom away messages aren't setup yet :/ (15:30:01) grim elite: ok i've got it compiling.. couple of warnings yet.. (15:34:24) grim elite: www.reaperworld.com/code/gaim/gaim-2.0.0cvs-oscar_compiles.diff Mark should look this over, but it seems fairly straight forward committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 08 Sep 2004 19:36:04 +0000
parents ab5db2c5da79
children e4d971338093
line wrap: on
line diff
--- a/src/account.c	Wed Sep 08 14:30:13 2004 +0000
+++ b/src/account.c	Wed Sep 08 19:36:04 2004 +0000
@@ -794,6 +794,16 @@
 	return ((p && p->info->name) ? _(p->info->name) : _("Unknown"));
 }
 
+const char *
+gaim_account_get_protocol_name(const GaimAccount *account)
+{
+	g_return_val_if_fail(account != NULL, NULL);
+
+	GaimPlugin *p = gaim_find_prpl(gaim_account_get_protocol_id(account));
+
+	return ((p && p->info->name) ? _(p->info->name) : _("Unknown"));
+}
+
 GaimConnection *
 gaim_account_get_connection(const GaimAccount *account)
 {