summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Server/CommandsTable.java9
1 files changed, 9 insertions, 0 deletions
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
{