X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Commands%2FQuotes.pm;h=608832f9d38094c40173c8d92c0800105acf7d10;hb=06eb99af20cebc85b1f609becb125b4dc32bf8ff;hp=7d18819eb61f038160163571bae522994256c499;hpb=4c40fd39668614135ae9370092b5d17355bad15c;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";