Mercurial > pidgin
comparison src/protocols/jabber/jabber.c @ 11675:828802f2251b
[gaim-migrate @ 13961]
Jabber User Directory searching...
This works when the stars are aligned, and breaks otherwise. It hasn't been tested on any "x:data" supporting servers (because I don't know of any yet). It doesn't let you know if there was an error. Really, it doesn't do a lot of things. But you can search. You do get results.
The results themselves, however, are a tad off. users.jabber.org is sending back results along the lines of:
<nick>faceprint@faceprint.com</nick><email>faceprint</email>
which is obviously switched. I'll ping the appropriate people to figure that out.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 17 Oct 2005 01:43:09 +0000 |
parents | 42ce5c68870a |
children | fa742ad8068c |
comparison
equal
deleted
inserted
replaced
11674:e860157296d4 | 11675:828802f2251b |
---|---|
808 g_hash_table_destroy(js->chats); | 808 g_hash_table_destroy(js->chats); |
809 while(js->chat_servers) { | 809 while(js->chat_servers) { |
810 g_free(js->chat_servers->data); | 810 g_free(js->chat_servers->data); |
811 js->chat_servers = g_list_delete_link(js->chat_servers, js->chat_servers); | 811 js->chat_servers = g_list_delete_link(js->chat_servers, js->chat_servers); |
812 } | 812 } |
813 while(js->user_directories) { | |
814 g_free(js->user_directories->data); | |
815 js->user_directories = g_list_delete_link(js->user_directories, js->user_directories); | |
816 } | |
813 if(js->stream_id) | 817 if(js->stream_id) |
814 g_free(js->stream_id); | 818 g_free(js->stream_id); |
815 if(js->user) | 819 if(js->user) |
816 jabber_id_free(js->user); | 820 jabber_id_free(js->user); |
817 if(js->avatar_hash) | 821 if(js->avatar_hash) |
1171 /* if (js->protocol_options & CHANGE_PASSWORD) { */ | 1175 /* if (js->protocol_options & CHANGE_PASSWORD) { */ |
1172 act = gaim_plugin_action_new(_("Change Password"), | 1176 act = gaim_plugin_action_new(_("Change Password"), |
1173 jabber_password_change); | 1177 jabber_password_change); |
1174 m = g_list_append(m, act); | 1178 m = g_list_append(m, act); |
1175 /* } */ | 1179 /* } */ |
1180 | |
1181 act = gaim_plugin_action_new(_("Search for users"), | |
1182 jabber_user_search_begin); | |
1183 m = g_list_append(m, act); | |
1176 | 1184 |
1177 return m; | 1185 return m; |
1178 } | 1186 } |
1179 | 1187 |
1180 static GaimChat *jabber_find_blist_chat(GaimAccount *account, const char *name) | 1188 static GaimChat *jabber_find_blist_chat(GaimAccount *account, const char *name) |