Script::GetChannelList
function · ui · primitive
- Address
0x4a02d0· 194 bytes, up to0x4a0391- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the number and name of every joined channel
- 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 2
- lua_pushnumber lua
- lua_pushstring lua
Calls and jumps by a bare address, from tables/calls.tsv.