BNETDocs
C>S 0x0C SID_JOINCHANNEL
Message Id:0x0C
Message Name:SID_JOINCHANNEL
Direction:Client to Server
Used By:Starcraft Original, Starcraft Broodwar
Starcraft Shareware, Starcraft Japanese
Diablo Retail, Diablo Shareware
Diablo II, Diablo II Lord of Destruction
Warcraft II BNE, Warcraft III Reign of Chaos
Warcraft III The Frozen Throne
Format:

(UINT32) Flags
(STRING) Channel 

Remarks

Joins a channel after entering chat.

The Channel name must be no greater than 31 characters, otherwise it becomes trimmed by Battle.net.

Flags Description
0x00 NoCreate join: This will only join the channel specified if it is not empty, and is used by clients when selecting a channel from the channels menu. If the channel is empty, Battle.net sends a S>C 0x0F SID_CHATEVENT of type EID_CHANNELDOESNOTEXIST, upon which official clients prompt for confirmation that the user wishes to create the channel, in which case, it resends this packet with Flags set to Forced join (0x02).
0x01 First join: Places user in a channel starting with their product and country, followed by a number, ie 'Brood War GBR-1'. Also automatically sends MOTD after entering the channel. When using this type, the Channel field has no effect, but must be non-empty anyway to avoid an IP ban. This is sent when first logging onto Battle.net.
0x02 Forced join: This is sent when leaving a game, and joins the specified channel without supplying a MOTD. If the Client is banned or restricted from joining the channel, the Client will enter The Void.
0x05 D2 first join: The same as First join (0x01), but is used for D2DV/D2XP clients.
| Edited:
Comments

no one has commented yet.