X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Commands%2FDef.pm;h=7c57099bdd8fd506208f96ad68b30dc9aa8b87ef;hp=d7862a364fdbe6d1ddda62cfeda6a0f34e4e6096;hb=a7e034b3599d41cdf5a158b14bd1715451f89a0c;hpb=87ddd7d37d6f5880757a71bfedd3459f4a511d2b diff --git a/Commands/Def.pm b/Commands/Def.pm index d7862a3..7c57099 100644 --- a/Commands/Def.pm +++ b/Commands/Def.pm @@ -172,10 +172,10 @@ sub calltake $dbh->begin_work; my $rows = $dbh->do(q{ -UPDATE calls SET dc = (SELECT uid FROM users WHERE hostmask ILIKE $1) +UPDATE calls SET dc = $1 ,status = $3 WHERE call = $2 - },undef,$c->host,$id,$status); + },undef,$c->uid,$id,$status); if ($rows == 1){ $c->reply("Setting status on call $id to $status"); $c->def_log($id , "Changed status: [B]$status [/B]");