ChannelCommandTwo
function · ui · orchestration
- Address
0x4a04b0· 259 bytes, up to0x4a05b2- Signature
void __fastcall (lua_State *L, uint32_t message, const char *verb)- Meaning
- Sends a channel message with a channel name and a second string, after the usage check
- Confidence
- verified, proof one
- Finding
- ui/channeladmin#commands-naming-a-channel
Finding: Commands naming a channel in ui: channel administration verbs
Fourteen verbs pass a fixed message number and their argument strings to one of two helpers. The first argument is the channel,
a name or the number of a joined channel, turned into the channel's name by ParseChannelKey; a verb whose helper takes a second
argument also needs it as a string. A missing or non-string argument raises Usage: <Verb>("channel") or
Usage: <Verb>("channel", "name") with the verb's own name (SetChannelPassword raises Usage: SetChannelPassword("name", "password"), pushed at 0x4a046b); a channel number with no joined channel sends nothing. Each
verb sends its message with the channel and, for the two-argument ones, the second string, and returns no value.
| verb | message | arguments |
|---|---|---|
SetChannelPassword | 0x9c | channel, password |
SetChannelOwner | 0x9d | channel, name |
ChannelModerator | 0x9f | channel, name |
ChannelUnmoderator | 0xa0 | channel, name |
ChannelMute | 0xa1 | channel, name |
ChannelUnmute | 0xa2 | channel, name |
ChannelInvite | 0xa3 | channel, name |
ChannelKick | 0xa4 | channel, name |
ChannelBan | 0xa5 | channel, name |
ChannelUnban | 0xa6 | channel, name |
ListChannelByName (0x9a), DisplayChannelOwner (0x9e), ChannelToggleAnnouncements (0xa7) and ChannelModerate (0xa8) take the channel alone.
The derivation is in the doc.
Callers 9
- Script::SetChannelOwner ui
- Script::ChannelModerator ui
- Script::ChannelUnmoderator ui
- Script::ChannelMute ui
- Script::ChannelUnmute ui
- Script::ChannelInvite ui
- Script::ChannelKick ui
- Script::ChannelBan ui
- Script::ChannelUnban ui
Callees 8
- CDataStore::PutUInt32 base
- CDataStore::PutCString base
- ParseChannelKey ui
- ClientServices::Send net
- SStrPrintf storm
- lua_isstring lua
- lua_tostring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.