Update of /cvsroot/gaim/gaim/src/protocols/jabber
In directory sc8-pr-cvs1:/tmp/cvs-serv5116/src/protocols/jabber
Modified Files:
chat.c chat.h jabber.c
Log Message:
now when you try to IM someone in a jabber chat, it'll actually get there
Index: chat.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/chat.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -p -r1.8 -r1.9
--- chat.c 24 Oct 2003 05:46:01 -0000 1.8
+++ chat.c 31 Oct 2003 05:14:27 -0000 1.9
@@ -268,3 +268,15 @@ gboolean jabber_chat_find_buddy(GaimConv
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);
+}
Index: chat.h
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/chat.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -p -r1.2 -r1.3
--- chat.h 27 Oct 2003 05:02:51 -0000 1.2
+++ chat.h 31 Oct 2003 05:14:27 -0000 1.3
@@ -52,5 +52,7 @@ void jabber_chat_whisper(GaimConnection
void jabber_chat_invite(GaimConnection *gc, int id, const char *message,
const char *name);
void jabber_chat_leave(GaimConnection *gc, int id);
+char *jabber_chat_buddy_real_name(GaimConnection *gc, int id, const char *who);
+
#endif /* _GAIM_JABBER_CHAT_H_ */
Index: jabber.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/jabber.c,v
retrieving revision 1.208
retrieving revision 1.209
diff -u -d -p -r1.208 -r1.209
--- jabber.c 31 Oct 2003 02:43:58 -0000 1.208
+++ jabber.c 31 Oct 2003 05:14:27 -0000 1.209
@@ -1086,7 +1086,10 @@ static GaimPluginProtocolInfo prpl_info
jabber_roster_group_rename,
NULL,
NULL, /* convo_closed */ /* XXX: thread_ids */
- jabber_normalize /* normalize */
+ jabber_normalize,
+ NULL, /* set_buddy_icon */
+ NULL, /* remove_group */
+ jabber_chat_buddy_real_name
};
static GaimPluginInfo info =
|