diff options
author | Dor Bivas <dor1_b@walla.com> | 2013-12-20 19:38:45 +0200 |
---|---|---|
committer | Dor Bivas <dor1_b@walla.com> | 2013-12-20 19:38:45 +0200 |
commit | 3adfc654cffbbac6a36c26d818602d402c128377 (patch) | |
tree | fdba1b7b050ea0ffa20323acd8b12a5a33d0b523 /src/Server | |
parent | 59652a80bef673d71253e221c354ecfeca80f169 (diff) |
server: ignoring command MODE
* Add a command class for ignoring commands
* Use it to ignore "MODE" for now.
Diffstat (limited to 'src/Server')
-rw-r--r-- | src/Server/CommandsTable.java | 9 |
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 { |