diff 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
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Sun Oct 16 18:26:32 2005 +0000
+++ b/src/protocols/jabber/jabber.c	Mon Oct 17 01:43:09 2005 +0000
@@ -810,6 +810,10 @@
 		g_free(js->chat_servers->data);
 		js->chat_servers = g_list_delete_link(js->chat_servers, js->chat_servers);
 	}
+	while(js->user_directories) {
+		g_free(js->user_directories->data);
+		js->user_directories = g_list_delete_link(js->user_directories, js->user_directories);
+	}
 	if(js->stream_id)
 		g_free(js->stream_id);
 	if(js->user)
@@ -1174,6 +1178,10 @@
 		m = g_list_append(m, act);
 	/* } */
 
+	act = gaim_plugin_action_new(_("Search for users"),
+			jabber_user_search_begin);
+	m = g_list_append(m, act);
+
 	return m;
 }