diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Server/CommandsTable.java | 6 |
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()); |