Remarks: | Joins a channel after entering chat.
The Channel name must be no greater than 31 characters, otherwise it becomes trimmed by Battle.net.
The flags field may contain the following values:
0x00: NoCreate join
0x01: First join
0x02: Forced join
0x05: D2 first join
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 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).
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 variable has no effect, but must be present anyway to avoid an IP ban. This is sent when first logging onto Battle.net
Forced Join:
This is sent when leaving a game, and joins the specified channel without an supplying an MOTD.
D2 First Join:
The same as First join, but is used for D2DV/D2XP clients. |
User Comments
For detailed questions and discussion, visit the Battle.net Research Forum
Sep 26, 2009
05:47 PM
If you send any flags except those above, you will not get any chat events back for it (meaning you did not join the channel).
If you send first join or forced join with the channel being the one you are in currently, Battle.net will make you join the channel you were in last. If you were not in a channel last, you will join The Void.