IrcDotNet.IrcClient.GetUserModeAndNickName C# (CSharp) Method

GetUserModeAndNickName() protected method

Extracts the the mode and nick name of a user from the specified value.
protected GetUserModeAndNickName ( string input ) : string>.Tuple
input string The input value, containing a nick name optionally prefixed by a mode character.
return string>.Tuple
        protected Tuple<string, string> GetUserModeAndNickName(string input)
        {
            if (input == null)
                throw new ArgumentNullException("input");
            if (input.Length == 0)
                throw new ArgumentException(Resources.MessageValueCannotBeEmptyString, "input");

            char mode;
            if (channelUserModesPrefixes.TryGetValue(input[0], out mode))
                return Tuple.Create(input.Substring(1), mode.ToString());
            return Tuple.Create(input, string.Empty);
        }
IrcClient