Mercurial > pidgin
view plugins/mono/MPlugin.cs @ 11672:04e0189bb519
[gaim-migrate @ 13958]
(contact-aware conversation)-aware logging: When the active buddy changes, a new log is opened. This way, the logs (on-disk, assuming a file-based logger) always correspond to the buddy that send/received the messages. Given that we already have contactized logging, the logs will all be shown in the same log viewer. Also, if you use Options -> Enable Logging to change the default logging mode for a perticular conversation or part of a conversation, that setting will be preserved even if the active buddy changes.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 16 Oct 2005 18:15:47 +0000 |
parents | a3302d271199 |
children | 67fbd2ff4c4e |
line wrap: on
line source
using Gaim; public class MPlugin : GaimPlugin { public void HandleSig(object[] args) { Buddy buddy = (Buddy)args[0]; Debug.debug(Debug.INFO, "mplug", "buddy " + buddy.Name + " went away\n"); } public override void Load() { Debug.debug(Debug.INFO, "mplug", "loading...\n"); /*Signal.connect(BuddyList.GetHandle(), this, "buddy-away", new Signal.Handler(HandleSig));*/ BuddyList.OnBuddyAway.connect(this, new Signal.Handler(HandleSig)); } public override void Unload() { Debug.debug(Debug.INFO, "mplug", "unloading...\n"); } public override void Destroy() { Debug.debug(Debug.INFO, "mplug", "destroying...\n"); } public override GaimPluginInfo Info() { return new GaimPluginInfo("C# Plugin", "0.1", "Test C# Plugin", "Longer Description", "Eoin Coffey", "urled"); } }