Send unknown commands to the server

This commit is contained in:
Sebastian Kaspari 2010-03-18 00:14:29 +01:00
parent 1b2461f8fe
commit ffaba5e25d
1 changed files with 16 additions and 9 deletions

View File

@ -151,6 +151,12 @@ public class CommandParser
}
} else {
// Unknown command
if (params.length > 1) {
// Send command to server
service.getConnection(server.getId()).sendRawLineViaQueue(
params[0].toUpperCase() + " " + BaseHandler.mergeParams(params)
);
} else {
if (conversation != null) {
Message message = new Message("Unknown command: " + type);
message.setColor(Message.COLOR_RED);
@ -163,4 +169,5 @@ public class CommandParser
}
}
}
}
}