Aselia.Core.Channel.GetUser C# (CSharp) Method

GetUser() public method

public GetUser ( string nick, UserBase notifyOnError = null ) : UserBase
nick string
notifyOnError UserBase
return UserBase
        public override UserBase GetUser(string nick, UserBase notifyOnError = null)
        {
            string id = nick.ToLower();
            if (Users.ContainsKey(id))
            {
                return Users[id];
            }

            if (notifyOnError != null)
            {
                notifyOnError.SendNumeric(Numerics.ERR_USERNOTINCHANNEL, nick, Name, ":That user is not on the channel.");
            }
            return null;
        }