mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00

User.prototype.refreshAccount was responsible for multiple race condition bugs as well as inefficient duplication of DB queries in an attempt to correct such race conditions. It has now been replaced by a more reasonable model: * Global user account information and aliases are fetched in parallel on socket connection * Channel rank is fetched when the user tries to join a channel
16 lines
351 B
JavaScript
16 lines
351 B
JavaScript
module.exports = {
|
|
C_READY : 1 << 0,
|
|
C_ERROR : 1 << 1,
|
|
C_REGISTERED : 1 << 2,
|
|
|
|
U_READY : 1 << 0,
|
|
U_LOGGING_IN : 1 << 1,
|
|
U_LOGGED_IN : 1 << 2,
|
|
U_REGISTERED : 1 << 3,
|
|
U_AFK : 1 << 4,
|
|
U_MUTED : 1 << 5,
|
|
U_SMUTED : 1 << 6,
|
|
U_IN_CHANNEL : 1 << 7,
|
|
U_HAS_CHANNEL_RANK: 1 << 8
|
|
};
|