11660
|
1 using Gaim;
|
|
2
|
|
3 public class MPlugin : GaimPlugin
|
|
4 {
|
|
5 public void HandleSig(object[] args)
|
|
6 {
|
|
7 Buddy buddy = (Buddy)args[0];
|
|
8
|
|
9 Debug.debug(Debug.INFO, "mplug", "buddy " + buddy.Name + " went away\n");
|
|
10 }
|
|
11
|
|
12 public override void Load()
|
|
13 {
|
|
14 Debug.debug(Debug.INFO, "mplug", "loading...\n");
|
|
15
|
|
16 /*Signal.connect(BuddyList.GetHandle(), this, "buddy-away", new Signal.Handler(HandleSig));*/
|
|
17 BuddyList.OnBuddyAway.connect(this, new Signal.Handler(HandleSig));
|
|
18 }
|
|
19
|
|
20 public override void Unload()
|
|
21 {
|
|
22 Debug.debug(Debug.INFO, "mplug", "unloading...\n");
|
|
23 }
|
|
24
|
|
25 public override void Destroy()
|
|
26 {
|
|
27 Debug.debug(Debug.INFO, "mplug", "destroying...\n");
|
|
28 }
|
|
29
|
|
30 public override GaimPluginInfo Info()
|
|
31 {
|
|
32 return new GaimPluginInfo("C# Plugin", "0.1", "Test C# Plugin", "Longer Description", "Eoin Coffey", "urled");
|
|
33 }
|
|
34 }
|