Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else // if type is LIST
- {
- List<ListMode> list = chan.ListModes;
- ListMode lMode;
- if ((lMode = list.Find(x => x.Mask.EqualsIgnoreCase(parameter))) == null)
- {
- if (!isSet)
- {
- return;
- }
- lMode = new ListMode(DateTime.Now, parameter, "", mode);
- list.Add(lMode);
- }
- /*List<string> list;
- if (!chan.ListModes.TryGetValue(mode, out list))
- {
- if (!isSet) // If we are unsetting a value but had no list...then clearly we had no value already stored :)
- return;
- list = new List<string>();
- chan.ListModes.Add(mode, list);
- }
- // If we are here, we should have the list of this mode
- list.RemoveAll(x => x.EqualsIgnoreCase(parameter));
- if (isSet)
- {
- list.Add(parameter);
- }*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement