====== S2C Packet 7.0: Context User List ====== Populates the user list for the channel the client just joined. If the user is already connected elsewhere, this list MUST NOT include the client user themselves. ===== Format ===== ^ Index ^ Type ^ Description ^ | 0 | ''%%7%%'' | Context Population packet ID | | 1 | ''%%0%%'' | Context User List packet ID | | 2 | [[sockchat:types#int|int]] | Amount of users preset in this packet | | The following fields are repeated by the amount of times in the previous field. ||| | n + 1 | [[sockchat:types#string|string]] | Message ID associated with this event | | n + 2 | [[sockchat:types#user_name|user name]] | Name of the existing user | | n + 3 | [[sockchat:types#colour|colour]] | Display colour of the existing user | | n + 4 | [[sockchat:types#user_perms|user perms]] | Permissions for the existing user | | n + 5 | [[sockchat:types#bool|bool]] | Whether the existing user is visible | ===== Examples ===== An empty user list: 7\t0\t0 A user list with 11 users present, all visible: 7\t0\t11\t2\tnook\t#492f10\t10\f1\f0\f1\f1\t1\t11\tSatori\t#e5a5c7\t9\f1\f0\f1\f0\t1\t9\trandom\t#19d719\t7\f1\f0\f1\f0\t1\t115\tosk\t#ee9400\t7\f1\f0\f1\f1\t1\t32\tszy\t#7353c4\t7\f1\f0\f1\f1\t1\t186\tParsee\t#9e8da7\t5\f0\f0\f1\f0\t1\t214\tDimentio\tinherit\t1\f0\f0\f0\f0\t1\t248\tkp\tinherit\t1\f0\f0\f0\f0\t1\t284\tlachrymal\tinherit\t1\f0\f0\f0\f0\t1\t73\trjoken\t#f02d7d\t1\f0\f0\f1\f0\t1\t5\twin\t#f02d7d\t1\f0\f0\f0\f0\t1 The same list but with faulty permission strings and user 9 is marked invisible: 7\t0\t11\t2\tnook\t#492f10\t10 1 0 1 1\t1\t11\tSatori\t#e5a5c7\t9 1 0 1 0\t0\t9\trandom\t#19d719\t7 1 0 1 0\t1\t115\tosk\t#ee9400\t7 1 0 1 1\t1\t32\tszy\t#7353c4\t7 1 0 1 1\t1\t186\tParsee\t#9e8da7\t5 0 0 1 0\t1\t214\tDimentio\tinherit\t1 0 0 0 0\t1\t248\tkp\tinherit\t1 0 0 0 0\t1\t284\tlachrymal\tinherit\t1 0 0 0 0\t1\t73\trjoken\t#f02d7d\t1 0 0 1 0\t1\t5\twin\t#f02d7d\t1 0 0 0 0\t1 ===== See Also ===== * [[sockchat:s2c:user-add|S2C Packet 1.#: User Add]] - Another user has been added. * [[sockchat:s2c:context-message-add|S2C Packet 7.1: Context Message Add]] - Provides an existing message in the current channel. * [[sockchat:s2c:context-channel-list|S2C Packet 7.2: Context Channel List]] - Provides the channel list of the server.