diff options
author | Ben Harris <ben@tilde.team> | 2020-05-14 02:10:04 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2020-05-14 02:10:04 -0400 |
commit | a0fbcf83c57d15bf4bbdd2f18a8b8d539e3e4a1a (patch) | |
tree | 2399e5b4f920a10917451069d808cfc4d2eb259b /IrcStates/ISupport.cs | |
parent | 023e29ab75f1f413f918346edaddafdf8b1df5ee (diff) |
Implement lots of things
Diffstat (limited to 'IrcStates/ISupport.cs')
-rw-r--r-- | IrcStates/ISupport.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/IrcStates/ISupport.cs b/IrcStates/ISupport.cs index 1e89b6d..2fc27dc 100644 --- a/IrcStates/ISupport.cs +++ b/IrcStates/ISupport.cs @@ -14,7 +14,10 @@ namespace IrcStates Raw = new Dictionary<string, string>(); Modes = 3; CaseMapping = Casemap.CaseMapping.Rfc1459; - // TODO: add remaining defaults, change properties to normal members as needed + Prefix = new ISupportPrefix("(ov)@+"); + ChanModes = new ISupportChanModes("b,k,l,imnpst"); + StatusMsg = new List<string>(); + Whox = false; } public Dictionary<string, string> Raw { get; set; } @@ -35,7 +38,7 @@ namespace IrcStates public void Parse(IEnumerable<string> tokens) { if (tokens == null) return; - + // remove first and last tokens = tokens.Skip(1).SkipLast(1); @@ -71,8 +74,7 @@ namespace IrcStates Watch = int.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); break; case "CASEMAPPING": - if (Enum.TryParse(value, true, out Casemap.CaseMapping caseMapping)) - CaseMapping = caseMapping; + if (Enum.TryParse(value, true, out Casemap.CaseMapping caseMapping)) CaseMapping = caseMapping; break; case "CHANTYPES": ChanTypes = new List<string> {value}; |