EVENT HANDLERS and the data sent to them


Debug (MSN object, message)
Error (MSN object, message)
ServerError (MSN object, message)


Connected (Notification object)

	Called when we are connected to the server


Disconnected (Notification object, message)

	Called when we have been disconnected from the server


Ping (Notification object)

	Called each time a ping is sent


Status (Notification object, contact email, contact status)

	Called when a contact's status has changed


ContactAddingUs (Notification object, contact email)

	Called when a contact has added us to their contact list


ContactRemovingUs (Notification object, contact email)

	Called when a contact has removed us from their contact list


Ring (Notification object, contact email, contact friendly name)

	Called when a user wants to start a conversation with you
	Return 1 if you accept, 0 if you don't want to join the conversation


Answer (SwitchBoard object)

   Not really useful


MemberJoined (SwitchBoard object, contact email, contact friendly name)

	Called when a user joins a conversation you are already in


MemberHere (SwitchBoard object, contact email, contact friendly name)

	Called right after RoomOpened for each user that is already here


RoomUpdated (SwitchBoard object)

	Called after all MemberHere calls have been made - the conversation is fully up to date


MemberLeft (SwitchBoard object, contact email)

	Called when a user leaves a conversation


RoomOpened (SwitchBoard object)

	Called just after joining a conversation


RoomClosed (SwitchBoard object)

	Called when the last user has left a conversation
	The SwitchBoard object is about to become invalid


Typing (SwitchBoard object, contact email, contact friendly name)

	Called when a user is typing in the conversation


FileReceiveInvitation (SwitchBoard object, contact email, contact friendly name, cookie, file, file size)

	Called when a file invitation comes in (in development)


Message (SwitchBoard object, contact email, contact friendly name, message, style hash)

	Called when a message comes in from a user


ClientCaps (SwitchBoard object, caps hash)

	Called when a contact is sending their client caps hash
