diff options
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}; |