benilla-re systems structs docs

Script::ListChannels

function · ui · primitive

Address
0x4a01c0 · 268 bytes, up to 0x4a02cb
Signature
int __fastcall (lua_State *L)
Meaning
Prints the joined channels as numbered names in chat lines
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/channeladmin#listing-channels

Finding: Listing channels in ui: channel administration verbs

ListChannels() prints one type 0x11 chat line listing the joined channels as [number. name] , skipping empty slots and slots whose flag at +0x9c is set. Before each append it flushes the line when SStrLen(line + SStrLen(entry)) reaches 2048: the line's length less the entry's, once the line is as long as the entry. The line never needs a flush (ten entries of at most 137 characters make 1370). While it is shorter than the entry, always for the first, the measure reads stale stack bytes and can still fire. GetChannelList() returns each such slot's number and name: the ChatChannels row's name in the current locale (+0x30) when the row id at +0x94 names a row, else the slot's own.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.