From: Michael Andreen Date: Fri, 18 Sep 2009 10:28:33 +0000 (+0200) Subject: Need to return the status for new calls X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=commitdiff_plain;h=52e610c60efbf26ad0cf5af27d5f7bea55e50824 Need to return the status for new calls --- diff --git a/Commands/Def.pm b/Commands/Def.pm index 2c8e7b1..c49405c 100644 --- a/Commands/Def.pm +++ b/Commands/Def.pm @@ -264,11 +264,12 @@ FROM groupmembers WHERE uid = ? AND gid = 'X' },undef,$user->{uid}); unless (@call){ #call doesn't exists, create a new one @call = $dbh->selectrow_array(q{ -INSERT INTO calls (uid,landing_tick,info) VALUES(?,?,'') RETURNING call +INSERT INTO calls (uid,landing_tick,info) VALUES(?,?,'') RETURNING call,status,calc },undef,$user->{uid},$landing_tick); if ($threefleeter){ $dbh->do(q{UPDATE calls SET status = 'Ignored' WHERE call = $1},undef,$call[0]); $c->def_log($call[0], 'This member has been marked as [B]NoDef[/B], do [B]not cover[/B] unless you have a good reaon.'); + $call[1] = 'Ignored'; } } if (@call){