X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;ds=sidebyside;f=Commands%2FQuotes.pm;h=608832f9d38094c40173c8d92c0800105acf7d10;hb=a7e034b3599d41cdf5a158b14bd1715451f89a0c;hp=7d18819eb61f038160163571bae522994256c499;hpb=87ddd7d37d6f5880757a71bfedd3459f4a511d2b;p=NDIRC.git diff --git a/Commands/Quotes.pm b/Commands/Quotes.pm index 7d18819..608832f 100644 --- a/Commands/Quotes.pm +++ b/Commands/Quotes.pm @@ -108,8 +108,8 @@ sub delquote $n = $n-1; if (exists $FILE[$n]){ my ($uid,$username) = $c->model->selectrow_array(q{ -SELECT uid,username FROM users where hostmask ILIKE ? - },undef,$c->host); +SELECT uid,username FROM users where uid = ? + },undef,$c->uid); my $text = $FILE[$n]; push @OLDFILE,"Removed by $username ($uid): $text";