public override string Extension_DumpHtml(config.channel channel) { string HTML = ""; infobot_core info = (infobot_core)channel.RetrieveObject("Infobot"); if (info != null) { HTML += "\n<table border=1 class=\"infobot\" width=100%>\n<tr><th width=10%>Key</th><th>Value</th></tr>\n"; List <infobot_core.InfobotKey> list = new List <infobot_core.InfobotKey>(); lock (info) { if (Module.GetConfig(channel, "Infobot.Sorted", false) != false) { list = info.SortedItem(); } else { list.AddRange(info.Keys); } } if (info.Keys.Count > 0) { foreach (infobot_core.InfobotKey Key in list) { HTML += core.HTML.AddKey(Key.Key, Key.Text); } } HTML += "</table>\n"; HTML += "<h4>Aliases</h4>\n<table class=\"infobot\" border=1 width=100%>\n"; lock (info) { foreach (infobot_core.InfobotAlias data in info.Alias) { HTML += core.HTML.AddLink(data.Name, data.Key); } } HTML += "</table><br>\n"; } return(HTML); }