From 3adfc654cffbbac6a36c26d818602d402c128377 Mon Sep 17 00:00:00 2001 From: Dor Bivas Date: Fri, 20 Dec 2013 19:38:45 +0200 Subject: server: ignoring command MODE * Add a command class for ignoring commands * Use it to ignore "MODE" for now. --- src/Server/CommandsTable.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Server/CommandsTable.java b/src/Server/CommandsTable.java index 522e794..5c3f5a9 100644 --- a/src/Server/CommandsTable.java +++ b/src/Server/CommandsTable.java @@ -14,6 +14,7 @@ public class CommandsTable this.table.put("JOIN", new CommandJoin()); this.table.put("PING", new CommandPing()); this.table.put("PRIVMSG", new CommandPrivmsg()); + this.table.put("MODE", new CommandIgnored()); } public void runCommand (Client client , String commandName , String args) @@ -133,6 +134,14 @@ class CommandBad extends Command } } +/** A command to ignore */ +class CommandIgnored extends Command +{ + public void run(Client client, String args) + { + } +} + /** Pinging each few seconds to keep the connection alive*/ class CommandPing extends Command { -- cgit v1.2.3