diff src/protocols/jabber/chat.c @ 7398:d60e1629ffde

[gaim-migrate @ 7994] now when you try to IM someone in a jabber chat, it'll actually get there committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 31 Oct 2003 05:14:27 +0000
parents ab828b8c3f22
children 08cef5988410
line wrap: on
line diff
--- a/src/protocols/jabber/chat.c	Fri Oct 31 03:02:48 2003 +0000
+++ b/src/protocols/jabber/chat.c	Fri Oct 31 05:14:27 2003 +0000
@@ -268,3 +268,15 @@
 	return FALSE;
 }
 
+char *jabber_chat_buddy_real_name(GaimConnection *gc, int id, const char *who)
+{
+	JabberStream *js = gc->proto_data;
+	JabberChat *chat;
+
+	chat = jabber_chat_find_by_id(js, id);
+
+	if(!chat)
+		return NULL;
+
+	return g_strdup_printf("%s@%s/%s", chat->room, chat->server, who);
+}