Added some of my new algorithm stubs, worked on general presentation of DateTime...
[circ.git] / Circ.Lib / Controller / CommandProcesser.cs
blob38124b50a25eade4334a5168829c79b55e3a86a2
1 #region License
2 /* Circ : Main program
3 * Copyright (C) 2007 LAVAL Jérémie
5 * This file is licensed under the terms of the LGPL.
7 * For the complete licence see the file COPYING.
8 */
9 #endregion
10 using System;
11 using System.Collections.Generic;
12 using Circ.Backend;
14 namespace Circ.Controller
16 public delegate void CommandFollower(IrcConnection sender, string command);
18 public class CommandProcesser
20 static CommandProcesser instance = new CommandProcesser();
22 Dictionary<string, CommandFollower> cmds = new Dictionary<string, CommandFollower>();
24 public static CommandProcesser Instance {
25 get {
26 return instance;
30 private CommandProcesser()
34 public void RegisterCommand(string prefix, CommandFollower func)
36 this.cmds.Add(prefix, func);