Mercurial > pidgin
view plugins/mono/GetBuddyBack.cs @ 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 | a3302d271199 |
children | 67fbd2ff4c4e |
line wrap: on
line source
using Gaim; public class GetBuddyBack : GaimPlugin { public void HandleSig(object[] args) { Buddy buddy = (Buddy)args[0]; Debug.debug(Debug.INFO, "buddyback", "buddy " + buddy.Name + " is back!\n"); } public override void Load() { Debug.debug(Debug.INFO, "buddyback", "loading...\n"); /*Signal.connect(BuddyList.GetHandle(), this, "buddy-back", new Signal.Handler(HandleSig));*/ BuddyList.OnBuddyBack.connect(this, new Signal.Handler(HandleSig)); } public override void Unload() { } public override void Destroy() { } public override GaimPluginInfo Info() { return new GaimPluginInfo("C# Get Buddy Back", "0.1", "Prints when a Buddy returns", "Longer Description", "Eoin Coffey", "urled"); } }