plugins/mono/GetBuddyBack.cs

Mon, 23 Jan 2006 04:54:37 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Mon, 23 Jan 2006 04:54:37 +0000
changeset 13012
402bd07464a7
parent 11980
fe5c2c58508c
permissions
-rw-r--r--

[gaim-migrate @ 15365]
Don't create duplicate transient statuses. So like, if you switch between
"Available" and "Away" a bunch of times and use the same message everywhere,
you'll only have one of each in your list of recent statuses

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");
	}
}

mercurial