Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-12-25 12:13:56 +0000
committerStijn Buys <ingar@osirion.org>2008-12-25 12:13:56 +0000
commitbfa10f9990a8a045b03474d11af75984c12a856a (patch)
tree87ff30329be78b8012d545b097b669b746ab0fc0 /src/core/commandbuffer.cc
parent164e3c5b1cd9e6d6f7ca26964df4c54394eb1c84 (diff)
Improved list_zone, list_ships
Ship price and cargo size
Diffstat (limited to 'src/core/commandbuffer.cc')
-rw-r--r--src/core/commandbuffer.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/commandbuffer.cc b/src/core/commandbuffer.cc
index 98cdc7a..e042eec 100644
--- a/src/core/commandbuffer.cc
+++ b/src/core/commandbuffer.cc
@@ -55,11 +55,9 @@ void func_list_ent(std::string const &args)
void func_list_zone(std::string const &args)
{
- std::istringstream argstream(args);
- std::string zonelabel;
- if (argstream >> zonelabel) {
- aux::lowercase(zonelabel);
- Zone::list_zone(zonelabel);
+ Zone *zone = Zone::search(args);
+ if (zone) {
+ zone->print();
} else {
Zone::list();
}