view plugins/mono/BooPlugin.boo @ 14128:a8a033a89ee0

[gaim-migrate @ 16766] I'm hoping this will fix a lot of the remaining idle-away problems, like not correctly returning from idle-away. This change also causes the gtkstatusbox to show your idle-away status when you are idle-away. Please test everything and let me know if there are any problems. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 15 Aug 2006 08:22:29 +0000
parents a3302d271199
children
line wrap: on
line source

import Gaim

class BooPlugin(GaimPlugin):

	def handle(*args as (object)):
		b as Buddy
		b = args[0]
		Debug.debug(Debug.INFO, "booplugin",  "Boo Plugin knows that " + b.Alias + " is away\n")
		
	override def Load():
		Debug.debug(Debug.INFO, "booplugin", "loading...\n")
		BuddyList.OnBuddyAway.connect(self, handle)
		
	override def Unload():
		Debug.debug(Debug.INFO, "booplugin", "unloading...\n")
		
	override def Destroy():
		Debug.debug(Debug.INFO, "booplugin", "destroying...\n")
		
	override def Info():
		return GaimPluginInfo("Boo Plugin", "0.1", "Test Boo Plugin", "Longer Description", "Eoin Coffey", "urled")