quote:
Originally posted by Matti
js code:
// On the top of your script, outside any function definition
var oStatusNames = {
0: "unknown",
2: "appearing offline",
3: "online",
4: "busy",
5: "be right back",
6: "idle",
7: "away",
8: "in a call",
9: "out to lunch"
};
...
I prefer to use the enumeration for status
js code:
// On the top of your script, outside any function definition
var oStatusNames = {
STATUS_UNKNOWN: 'unknown',
STATUS_INVISIBLE: 'appearing offline',
STATUS_ONLINE: 'online',
STATUS_BUSY: 'busy',
STATUS_BRB: 'be right back',
STATUS_IDLE: 'idle',
STATUS_AWAY: 'away',
STATUS_INCALL: 'in a call',
STATUS_OUTLUNCH: 'out to lunch'
};