Mercurial > pidgin
view libpurple/plugins/mono/GetBuddyBack.cs @ 25628:2209f3440538
*** Plucked rev cdbf018a5ef98397e81d541269550d9c6fded457 (sulabh@soc.pidgin.im):
Set yahoo to connected after processing the buddy list, should help get rid of the bug reported by the adium user
*** Plucked rev 3952ed728efd23f39d502201b828c86acf6dffd2 (sulabh@soc.pidgin.im):
yahoo login ver 16: Add another case of error reporting. Ask user to visit yahoo website in case of locked account.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Fri, 19 Jun 2009 21:10:02 +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() { } }