Mercurial > pidgin
view libpurple/plugins/mono/GetBuddyBack.cs @ 15564:45d3dd67fa13
With the refactoring I did, it's now possible to reach timestamp_cb_common
with conv == NULL. It happens with system logs. I've reworked the code
accordingly to avoid an assertion failure.
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Mon, 05 Feb 2007 05:28:54 +0000 |
| parents | 7ae72b7c02b1 |
| children | 80ee585fb53c |
line wrap: on
line source
using Gaim; public class GetBuddyBack : Plugin { private static PluginInfo info = new PluginInfo("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.OnBuddyBack.connect(this, new Signal.Handler(HandleSig));*/ } public override void Unload() { } public override void Destroy() { } }
