plugins/mono/BooPlugin.boo

Mon, 10 Apr 2006 23:44:20 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Mon, 10 Apr 2006 23:44:20 +0000
changeset 13619
0ee536d92264
parent 11660
a7cf8f7d43b3
permissions
-rw-r--r--

[gaim-migrate @ 16004]
I forgot to save the file after I removed the XXX comment.

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")
		

mercurial