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

RemovePrefix() public method

public RemovePrefix ( UserBase user, char c ) : void
user UserBase
c char
return void
        public override void RemovePrefix(UserBase user, char c)
        {
            if (Prefixes.ContainsKey(user.Mask.Account))
            {
                string value = Prefixes[user.Mask.Account].Replace(c.ToString(), string.Empty);
                if (value == string.Empty)
                {
                    Prefixes.Remove(user.Mask.Account);
                }
                else
                {
                    Prefixes[user.Mask.Account] = value;
                }

                Server.Commit(this);
            }
        }