From a0fbcf83c57d15bf4bbdd2f18a8b8d539e3e4a1a Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 14 May 2020 02:10:04 -0400 Subject: Implement lots of things --- IrcStates/ISupport.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'IrcStates/ISupport.cs') 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(); 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(); + Whox = false; } public Dictionary Raw { get; set; } @@ -35,7 +38,7 @@ namespace IrcStates public void Parse(IEnumerable 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 {value}; -- cgit 1.4.1