comparison src/protocols/jabber/chat.c @ 7400:08cef5988410

[gaim-migrate @ 7996] there isn't really whispering in jabber chats committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 31 Oct 2003 06:53:11 +0000
parents d60e1629ffde
children 0555e59dfba9
comparison
equal deleted inserted replaced
7399:9ab1987e5d8b 7400:08cef5988410
136 jabber_send(js, message); 136 jabber_send(js, message);
137 xmlnode_free(message); 137 xmlnode_free(message);
138 g_free(room_jid); 138 g_free(room_jid);
139 } 139 }
140 140
141 void jabber_chat_whisper(GaimConnection *gc, int id, const char *who,
142 const char *message)
143 {
144 JabberStream *js = gc->proto_data;
145 JabberChat *chat;
146 char *full_jid;
147
148 chat = jabber_chat_find_by_id(js, id);
149
150 full_jid = g_strdup_printf("%s@%s/%s", chat->room, chat->server, who);
151
152 jabber_message_send_im(gc, full_jid, message, 0);
153
154 g_free(full_jid);
155 }
156
157 void jabber_chat_join(GaimConnection *gc, GHashTable *data) 141 void jabber_chat_join(GaimConnection *gc, GHashTable *data)
158 { 142 {
159 JabberChat *chat; 143 JabberChat *chat;
160 char *room, *server, *handle, *passwd; 144 char *room, *server, *handle, *passwd;
161 xmlnode *presence, *x; 145 xmlnode *presence, *x;