X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FMembers.pm;h=81a1238c2cdb8c2d270b3ffe22530bb6dbe24b54;hp=9d7afba326683372967ff0506b66bc589983667e;hb=9ae7827f704b12b614b2352d3a2b06a1dbc4b3bd;hpb=f09f6a54a1f4a448f3f2740fdc224f7043a15ff4 diff --git a/lib/NDWeb/Controller/Members.pm b/lib/NDWeb/Controller/Members.pm index 9d7afba..81a1238 100644 --- a/lib/NDWeb/Controller/Members.pm +++ b/lib/NDWeb/Controller/Members.pm @@ -366,6 +366,11 @@ sub postintelmessage : Local { } } + my ($coords,$tick) = $c->model->selectrow_array(q{ +SELECT coords(x,y,z), tick() FROM current_planet_stats WHERE pid = $1 + }, undef, $c->user->planet); + + $c->req->param(message => "[i]Posted by $coords at tick $tick [/i]\n\n" . $c->req->param('message')); $c->forward('/forum/insertThread',[12]); $c->forward('/forum/insertPost',[$c->stash->{thread}]); $c->flash(intelmessage => 1);