SkyMailboxRegistrant
From WoWWiki
This article is a part of the documentation of the Sky function library
SkyMailbox Table:
{
id = MailboxIdentifier,
events = { SKY_CHANNEL, SKY_PARTY, ... },
acceptTest = functionHere,
lifespan = 120, -- Seconds
mailboxLimit = 10, -- messages
weight = 10
};
Keys
- id - the unique mailboxID which will be used to store acceptedTests
- events - a list of types which will be checked.
- ** Add SKY_CHANNEL, SKY_RAID, SKY_PARTY, SKY_PLAYER to access those special types **
- acceptTest - a function which will be passed a SkyEnvelope for the event
- If it returns true, the message will be place in mailbox matching id.
Optional:
- block -
- If it returns true, the chat message will be hidden.
- lifespan - the number of seconds a message may remain in the inbox before being removed
- mailboxLimit - the maximum number of messages the mailbox can contain.
- weight - heavier watches go last
