Interpret numeric values as being hexadecimal values if they contain hex digits a-f
[reactos.git] / irc / TechBot / TechBot.Library / ICommand.cs
1 using System;
2
3 namespace TechBot.Library
4 {
5 public interface ICommand
6 {
7 bool CanHandle(string commandName);
8 void Handle(MessageContext context,
9 string commandName,
10 string parameters);
11 string Help();
12 }
13
14
15
16 public class BaseCommand
17 {
18 protected bool CanHandle(string commandName,
19 string[] availableCommands)
20 {
21 foreach (string availableCommand in availableCommands)
22 {
23 if (String.Compare(availableCommand, commandName, true) == 0)
24 return true;
25 }
26 return false;
27 }
28 }
29 }