/// <summary>Gets subcategories titles for this PageList from specified wiki category page, /// excluding other pages. Use FillFromCategory function to get other pages.</summary> /// <param name="categoryName">Category name, with or without prefix.</param> public void FillSubsFromCategory(string categoryName) { int count = pages.Count; PageList pl = new PageList(site); pl.FillAllFromCategory(categoryName); pl.FilterNamespaces(new int[] {14}); pages.AddRange(pl.pages); if (pages.Count != count) Bot.LogEvent(Bot.Msg("PageList filled with {0} subcategory page titles, " + "found in \"{1}\" category."), (pages.Count - count).ToString(), categoryName); else Console.Error.WriteLine( Bot.Msg("Nothing was found in \"{0}\" category."), categoryName); }