Meebey.SmartIrc4net.IrcClient.GetChannelUser C# (CSharp) Method

GetChannelUser() public method

Returns extended user information including channel information
public GetChannelUser ( string channelname, string nickname ) : ChannelUser
channelname string The name of the channel you wish to query
nickname string The users 'nick' name which may NOT contain spaces
return ChannelUser
        public ChannelUser GetChannelUser(string channelname, string nickname)
        {
            if (channelname == null) {
                throw new System.ArgumentNullException("channel");
            }

            if (nickname == null) {
                throw new System.ArgumentNullException("nickname");
            }

            Channel channel = GetChannel(channelname);
            if (channel != null) {
                return (ChannelUser)channel.UnsafeUsers[nickname];
            } else {
                return null;
            }
        }