diff src/protocols/silc/ops.c @ 11531:bf763a1b2454

[gaim-migrate @ 13780] (13:57:11) rlaager: LSchiere2: Should we just change gaim_notify_userinfo to take a screenname and eliminate all the duplication of "Buddy Information" and "Info for %s"? (13:57:18) LSchiere2: sounds good This breaks perl, I could not figure out how to fix that. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 12 Sep 2005 18:46:15 +0000
parents a26eb48d1953
children c9b815aeddc1
line wrap: on
line diff
--- a/src/protocols/silc/ops.c	Mon Sep 12 18:43:03 2005 +0000
+++ b/src/protocols/silc/ops.c	Mon Sep 12 18:46:15 2005 +0000
@@ -937,7 +937,7 @@
 			SilcUInt32 idle, mode;
 			SilcBuffer channels, user_modes;
 			SilcClientEntry client_entry;
-			char *buf, tmp[1024], *tmp2, *title;
+			char *buf, tmp[1024], *tmp2;
 			char *moodstr, *statusstr, *contactstr, *langstr, *devicestr, *tzstr, *geostr;
 			GString *s;
 
@@ -1084,9 +1084,7 @@
 						_("More..."), G_CALLBACK(silcgaim_whois_more));
 			else
 #endif
-			title = g_strdup_printf(_("Info for %s"), client_entry->nickname);
-			gaim_notify_userinfo(gc, client_entry->nickname, title, _("Buddy Information"), NULL, buf, NULL, NULL);
-			g_free(title);
+			gaim_notify_userinfo(gc, client_entry->nickname, _("Buddy Information"), NULL, buf, NULL, NULL);
 			g_free(buf);
 		}
 		break;
@@ -1094,7 +1092,7 @@
 	case SILC_COMMAND_WHOWAS:
 		{
 			SilcClientEntry client_entry;
-			char *buf, *nickname, *realname, *username, *tmp, *title;
+			char *buf, *nickname, *realname, *username, *tmp;
 			GString *s;
 
 			if (!success) {
@@ -1146,10 +1144,8 @@
 				silc_free(pk);
 			}
 
-			title = g_strdup_printf(_("Info for %s"), client_entry->nickname);
 			buf = g_string_free(s, FALSE);
-			gaim_notify_userinfo(gc, client_entry->nickname, title, _("Buddy Information"), NULL, buf, NULL, NULL);
-			g_free(title);
+			gaim_notify_userinfo(gc, client_entry->nickname, _("Buddy Information"), NULL, buf, NULL, NULL);
 			g_free(buf);
 		}
 		break;