plugins/mono/BooPlugin.boo

Thu, 22 Dec 2005 14:58:45 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Thu, 22 Dec 2005 14:58:45 +0000
changeset 12622
55c9c22a3885
parent 11660
a7cf8f7d43b3
permissions
-rw-r--r--

[gaim-migrate @ 14958]
This will prevent error messages when the gaim_user_dir is non-ASCII (the call doesn't actually do anything on win32 anyway).

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