summaryrefslogtreecommitdiff
path: root/src/Server
diff options
context:
space:
mode:
authorDor Bivas <dor1_b@walla.com>2013-12-21 18:20:40 +0200
committerDor Bivas <dor1_b@walla.com>2013-12-21 18:20:40 +0200
commit325974ab3c08668ce9c2f2b4957e3337928a0114 (patch)
treec817ba00b6a866dc66cc9c55d3aceb887b863ff0 /src/Server
parentade2b3793fb7d588078631a02e4f25e237c7824c (diff)
server: pass server to CommandsTable
Diffstat (limited to 'src/Server')
-rw-r--r--src/Server/CommandsTable.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Server/CommandsTable.java b/src/Server/CommandsTable.java
index 5c3f5a9..0b71ce6 100644
--- a/src/Server/CommandsTable.java
+++ b/src/Server/CommandsTable.java
@@ -1,12 +1,16 @@
package Server;
import java.io.IOException;
import java.util.Hashtable;
+import java.util.Iterator;
public class CommandsTable
{
private Hashtable<String, Command> table;
- public CommandsTable()
+ private ChatServer server;
+
+ public CommandsTable(ChatServer server)
{
+ this.server = server;
this.table = new Hashtable<String, Command>();
this.table.put("NICK", new CommandNick());
this.table.put("USER", new CommandUser());