Mercurial > pidgin
view libpurple/plugins/mono/GetBuddyBack.cs @ 19123:576edd9c4f72
propagate from branch 'im.pidgin.pidgin' (head 96be2c6bb0b910f823a48bf0ffc247135df4a988)
to branch 'im.pidgin.soc.2007.finchfeat' (head 2a7598789162e259bfd3ba6cfa189a024137c675)
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Fri, 29 Jun 2007 12:45:08 +0000 |
parents | 80ee585fb53c |
children |
line wrap: on
line source
using Purple; public class GetBuddyBack : Plugin { private static PluginInfo info = new PluginInfo("mono-buddyback", "C# Get Buddy Back", "0.1", "Prints when a Buddy returns", "Longer Description", "Eoin Coffey", "urled"); public GetBuddyBack() : base (info) { } 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.OnBuddyStatusChanged.connect(this, new Signal.Handler(HandleSig)); } public override void Unload() { } public override void Destroy() { } }