- miscellaneous small fixes

- add support for preventing all commands to be run on the channel by default. Now TechBot only answers some of the commands in PM
- add back the error Command

svn path=/trunk/; revision=34079
This commit is contained in:
Marc Piulachs 2008-06-25 13:23:59 +00:00
parent b7525df85d
commit a46601a21c
8 changed files with 63 additions and 578 deletions

View file

@ -16,11 +16,10 @@ namespace TechBot.Commands.MSDN
private bool IsVerbose = false;
private HtmlHelpSystem chm;
private string name;
public ApiCommand()
{
Run();
LoadCHM();
}
[CommandParameter("api", "The API name")]
@ -36,7 +35,7 @@ namespace TechBot.Commands.MSDN
Say(message);
}
private void Run()
private void LoadCHM()
{
string CHMFilename = Path.Combine(Settings.Default.ChmPath, Settings.Default.MainChm);
chm = new HtmlHelpSystem();