Mercurial > eagle-eye
changeset 306:2f36120aba83
merged
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Wed, 10 Dec 2008 00:42:31 +0800 |
parents | ff8db948e1a1 (diff) cdbb428b464c (current diff) |
children | 2972852a4ee5 f6f56a47f383 |
files | |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/spy.pl Tue Dec 09 03:16:31 2008 +0800 +++ b/spy.pl Wed Dec 10 00:42:31 2008 +0800 @@ -6,6 +6,8 @@ use Decision::ParseTree q{ParseTree}; use YAML qw/LoadFile Dump DumpFile/; +Ikariam::Cities->has_a(user => 'Ikariam::User'); + our $i = new Ikariam($::server, $::user, $::pass); $i->login; # $i->check(); @@ -14,6 +16,9 @@ # $i->{'cities'}->{$city->{id}} = $city; my $spydata = $i->checkSafeHouse($city->{id}); foreach (keys(%{$spydata})) { + my $city = Ikariam::Cities->retrieve($_); + my $user = $city->user; + printf("%s %s\n", $user->name, $city->cityname); DumpFile("spy-$_-dump.yaml", $spydata->{$_}); } }