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.
11 using System
.Collections
.Generic
;
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
{
30 private CommandProcesser()
34 public void RegisterCommand(string prefix
, CommandFollower func
)
36 this.cmds
.Add(prefix
, func
);