src/ServerInfo/ChannelTypes.cs
/// <summary>
/// Gets an integer containing the channel limit for a specified channel prefix.
/// </summary>
/// <param name="ChannelPrefix">The channel prefix to get the limit for.</param>
/// <returns>The maximum number of joined channels supported by server from specified channel prefix. Returns 0 (zero) if unlimited, -1 if unknown.</returns>
Gets an integer containing the channel limit for a specified channel prefix.
Gets an integer containing the channel limit for a specified channel prefix .
public int GetLimitByPrefix(char ChannelPrefix)
        {
            string[] strParts = GetPrefix(ChannelPrefix);
            if (strParts != null)
            {
                if (strParts[0].IndexOf(ChannelPrefix) != -1)
                    return int.Parse(strParts[1]);
            }
            return -1;
        }
public int GetLimitByPrefix ( char ChannelPrefix ) { string [ ] strParts = GetPrefix ( ChannelPrefix ) ; if ( strParts != null ) { if ( strParts [ 0 ] . IndexOf ( ChannelPrefix ) != - 1 ) return int . Parse ( strParts [ 1 ] ) ; } return - 1 ; }
Gets an integer containing the channel limit for a specified channel prefix.
Gets an integer containing the channel limit for a specified channel prefix .
The maximum number of joined channels supported by server from specified channel prefix. Returns 0 (zero) if unlimited, -1 if unknown.
The maximum number of joined channels supported by server from specified channel prefix . Returns 0 ( zero ) if unlimited - 1 if unknown .
ChannelPrefix
char
The channel prefix to get the limit for.
The channel prefix to get the limit for .