From 52e610c60efbf26ad0cf5af27d5f7bea55e50824 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Fri, 18 Sep 2009 12:28:33 +0200 Subject: [PATCH] Need to return the status for new calls --- Commands/Def.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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){ -- 2.39.2